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

Commit 93cedf6f authored by haiyangl's avatar haiyangl Committed by Linux Build Service Account
Browse files

Keyguard: Fix SIM unlock progress dialog doesn't disappear issue

Sometimes the SIM unlock dialog can not be hidden, when the view is
re-inflated due to config change in KeyguardViewManager.

Dismiss the dialog, when KeyguardSimPinView is detached from window.

CRs-Fixed: 713577

Change-Id: I0c7bb79e5afed709c7258def73f5d12b9b702148
parent d359dcd5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -173,6 +173,11 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        mKgUpdateMonitor.removeCallback(mUpdateCallback);
        // dismiss the dialog.
        if (mSimUnlockProgressDialog != null) {
            mSimUnlockProgressDialog.dismiss();
            mSimUnlockProgressDialog = null;
        }
    }

    @Override