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

Commit c33839f7 authored by kaiyiz's avatar kaiyiz Committed by Gerrit - the friendly Code Review server
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 e44bc35e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -192,6 +192,16 @@ public class KeyguardSimPinView extends KeyguardAbsKeyInputView
        }
    }

    @Override
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        // dismiss the dialog.
        if (mSimUnlockProgressDialog != null) {
            mSimUnlockProgressDialog.dismiss();
            mSimUnlockProgressDialog = null;
        }
    }

    @Override
    public void onPause() {
        // dismiss the dialog.