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

Commit d3a0d575 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android (Google) Code Review
Browse files

Merge "Change hide() to dismiss() to avoid memory leak."

parents 9314feb9 7dda196e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -130,9 +130,10 @@ public class SimUnlockScreen extends LinearLayout implements KeyguardScreen, Vie

    /** {@inheritDoc} */
    public void cleanUp() {
        // hide the dialog.
        // dismiss the dialog.
        if (mSimUnlockProgressDialog != null) {
            mSimUnlockProgressDialog.hide();
            mSimUnlockProgressDialog.dismiss();
            mSimUnlockProgressDialog = null;
        }
        mUpdateMonitor.removeCallback(this);
    }