-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(android): Refactored activity/fragment restore handling (#10829)
* [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. * Android: Updated code formatting for [TIMOB-26966] * Android: Fixed [TIMOB-26966] to not crash when putting a fragment within 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. * [TIMOB-26975] Android: Fixed bug where LiveView does not reload app if "Don't keep activities" is enabled as of 8.0.0 * Android: Added additional error checking to dialog code for [TIMOB-26966] * 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. * 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. * Android: Updated code formatting for [TIMOB-26966] * Android: Modified [TIMOB-26966] to not exit app upon relaunch/restore after OS force quit it
- Loading branch information
1 parent
f3061dc
commit c4a01b3
Showing
22 changed files
with
601 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.