Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): Refactored activity/fragment restore handling #10829

Merged
merged 19 commits into from
Apr 26, 2019

Commits on Apr 6, 2019

  1. [TIMOB-26966] Android: Refactored activity/fragment restore handling

    - [TIMOB-26966] Fixed bug where back navigating from child window causes app to exit when "Don't keep activities" is enabled as of 7.2.1.
    - [TIMOB-26914] Fixed 8.0.0 regression where an OS forced quit app displays a blank window upon relaunch. (Was incorrectly restoring child activity.)
    - [TIMOB-17089] Resolved view ID conflicts causes app crashes when activity/fragment is restored.
    - [TIMOB-26964] Fixed bug where TabGroup would be blank (no tabs) when calling child window's close() method while "Don't keep activities" is enabled.
    - [TIMOB-26890] Fixed bug where tapping 3rd tab in TabGroup can cause a crash due to view ID conflict during fragment restore.
    - Increased TabGroup's ViewPager offscreen page limit from 1 to 128 to avoid tab fragment from being destroyed/restored.
    - Added several safety mechanisms to AlertDialog and ProgressIndicator dialog code to avoid crashes.
    jquick-axway committed Apr 6, 2019
    Configuration menu
    Copy the full SHA
    ce69257 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2ad23d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    232436b View commit details
    Browse the repository at this point in the history
  4. Android: Fixed [TIMOB-26966] to not crash when putting a fragment wit…

    …hin a fragment such as "ti.map" view
    
    - Re-added ID assigned to TiUIFragment's view, but it's now guaranteed to be assigned a unique ID.
    jquick-axway committed Apr 6, 2019
    Configuration menu
    Copy the full SHA
    facd5ac View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2019

  1. Configuration menu
    Copy the full SHA
    32714d5 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2019

  1. [TIMOB-26975] Android: Fixed bug where LiveView does not reload app i…

    …f "Don't keep activities" is enabled as of 8.0.0
    jquick-axway committed Apr 10, 2019
    Configuration menu
    Copy the full SHA
    5ea495a View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. Configuration menu
    Copy the full SHA
    336b3cf View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2019

  1. Android: Added additional dialog error checking to [TIMOB-26966]

    - [TIMOB-15829] Fixed crash caused by progress indicator set to status bar that happens after hiding twice and then opening.
    jquick-axway committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    084bfc0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1676b20 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    da04a2f View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2019

  1. Configuration menu
    Copy the full SHA
    d1f5b71 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2019

  1. Configuration menu
    Copy the full SHA
    e7941fa View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2019

  1. Configuration menu
    Copy the full SHA
    b4d7abd View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2019

  1. Configuration menu
    Copy the full SHA
    bfa336b View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2019

  1. Android: More improvements made to [TIMOB-26966]

    - [TIMOB-26966] Fixed bug where Window/TabGroup close()method call is ignored until "open" event has been fired.
      * Resolved by modifying proxy's handleClose() to call TiActivityWindows.remove() immediately.
    - Fixed bug where dynamically changing "exitOnClose" would be ignored.
      * Flag was only being read by activity's "launchIntent" in 8.0.0.
      * Now reads directly from proxy, which is the best solution. Especially if onNewIntent() was called. (Old code would have had a problem too.)
    - Re-added support for "exitOnClose" in child windows. (Was only supported by root window.)
    - Removed window exit animation if its "exitOnClose" was set true. (Prevents parent window briefly appearing upon exit.)
    - Added more dialog safe-guards.
      * Would crash if failed to create dialog builder if there are no activities available.
      * Can happen if "Don't keep activities" is enabled, you press the Home button, and code attempts to show dialog in the background.
    jquick-axway committed Apr 26, 2019
    Configuration menu
    Copy the full SHA
    1733c85 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8155dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1b7216f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bbc591e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    94fc91c View commit details
    Browse the repository at this point in the history