Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaee4539 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Gerrit Code Review
Browse files

Merge "Catch crash in mobile network ProgressDialog"

parents 7c849787 9f74807e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -176,7 +176,11 @@ public class AutoSelectPreferenceController extends TelephonyTogglePreferenceCon

    private void dismissProgressBar() {
        if (mProgressDialog != null && mProgressDialog.isShowing()) {
            try {
                mProgressDialog.dismiss();
            } catch (IllegalArgumentException e) {
                // Ignore exception since the dialog will be gone anyway.
            }
        }
    }