commit | a90b57acd8785f02fae5726928299e77719f0e38 | [log] [tgz] |
---|---|---|
author | Shen Lin <shhenlin@gmail.com> | Sat Sep 24 01:13:30 2022 +0800 |
committer | Shen Lin <shhenlin@gmail.com> | Mon Sep 26 23:13:45 2022 +0800 |
tree | a6d7297b88f23bb0fcd975497fefbd20b8af0747 | |
parent | 766bd4cedbd00fe300f8eb693001395c380fc067 [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