commit | 3588cb06ba73bd42f47bc3ea69b58bcfffa7a92f | [log] [tgz] |
---|---|---|
author | Shen Lin <shhenlin@gmail.com> | Sat Sep 24 01:13:30 2022 +0800 |
committer | Fabian Kozynski <kozynski@google.com> | Tue Dec 06 14:51:31 2022 -0500 |
tree | da9fd836e05b75c9e9702a6791193223354f12c6 | |
parent | 5cb3c55774aa7c1c5d5b147a75c4f7addbd6b60a [diff] |
Fix crash when trying to dismiss dialog Calling Dialog.dismiss() requires a safe condition, including that dialog is shown,and activity is neither finishing nor destroying, so we should add a precondition check here to avoid crash. Bug: 248562161 Test: manual and atest Change-Id: I87de2cd05680815d4bb4e80ac1e0d6e2e4a685f7