Merge "Catch crash in mobile network ProgressDialog" am: aaee4539c7
am: 840506e88a
am: 2d84cdbc3a
am: e6c57426cd
am: 7300bab2b6
Bug: 146057372
Change-Id: If80a964d28950288f042d4a1ccfc183b9c4f0067
(cherry picked from commit 0577514d0d
)
This commit is contained in:
committed by
Bonian Chen
parent
9a84a2d544
commit
7ab0499a38
@@ -176,7 +176,11 @@ public class AutoSelectPreferenceController extends TelephonyTogglePreferenceCon
|
||||
|
||||
private void dismissProgressBar() {
|
||||
if (mProgressDialog != null && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
try {
|
||||
mProgressDialog.dismiss();
|
||||
} catch (IllegalArgumentException e) {
|
||||
// Ignore exception since the dialog will be gone anyway.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user