DescriptionUse commitAllowingStateLoss() for showing sync confirmation dialogs
This CL fixes crash that is caused by asynchronous callback trying to show
dialog after activity was paused.
Android framework doesn't allow committing FragmentTransactions after call to
onSaveInstanceState, because such transactions can lead to state loss if activity
is killed and recreated from the earlier saved state. This CL uses
commitAllowingStateLoss() to avoid exception and crash. Possible state loss
is not important in this case because of crbug.com/708156.
BUG=672251
Review-Url: https://codereview.chromium.org/2794063004
Cr-Commit-Position: refs/heads/master@{#462814}
Committed: https://chromium.googlesource.com/chromium/src/+/7b9f72c29d6da03e50bc77c127f76a6a2d38477e
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|