-
-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fragment added crash on Android native stack (#399)
Thi change fixes "fragment already added crash". The crash was caused by us calling onUpdate twice without fragment manager transaction queue getting flushed in between. This could've happened because in dismiss method we'd directly call onUpdate instead of going through markUpdated mechanism that enqueues onUpdate calls using choreographer and threfore guarantees that the method is called only once per frame. On top of changing dismiss behavior we also added call to flush fragment manager transactions queue in case there are some enqueued transactions at the point when onUpdate is called.
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 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