-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DialogCollator destroys/rebuild instead of dismiss/show
When `DialogCollator` has to reorder, it did so by calling `Dialog.dismiss()` and `Dialog.show()`. When that happens the view in the `Dialog` is detached from its window and reattached. When that view is a `ComposeView`, it stops acknowledging touch events. This is the umpteenth bug we've faced because views tend to be written assuming they will only ever be attached once, and I'm tired of it, so now we destroy a dialog that is out of order and create a new one to replace it -- taking care to save the view state of the destroyed one and restore it on the replacement.
- Loading branch information
Showing
2 changed files
with
27 additions
and
31 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