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

Commit 4b8c9b74 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 7fff2d19: am 1de4a2ca: am 62619392: Merge "Fix leak when keylock is recreated."

* commit '7fff2d19':
  Fix leak when keylock is recreated.
parents 998a5617 7fff2d19
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -163,6 +163,12 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
     */
    private Configuration mConfiguration;

    private Runnable mRecreateRunnable = new Runnable() {
        public void run() {
            recreateScreens();
        }
    };

    /**
     * @return Whether we are stuck on the lock screen because the sim is
     *   missing.
@@ -244,7 +250,8 @@ public class LockPatternKeyguardView extends KeyguardViewBase {

            public void recreateMe(Configuration config) {
                mConfiguration = config;
                recreateScreens();
                removeCallbacks(mRecreateRunnable);
                post(mRecreateRunnable);
            }

            public void takeEmergencyCallAction() {
@@ -462,6 +469,12 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
        updateScreen(mMode);
    }

    @Override
    protected void onDetachedFromWindow() {
        removeCallbacks(mRecreateRunnable);
        super.onDetachedFromWindow();
    }

    @Override
    public void wakeWhenReadyTq(int keyCode) {
        if (DEBUG) Log.d(TAG, "onWakeKey");