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

Commit 7da4dd0a authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Ricardo Cerqueira
Browse files

SimUnlockScreen: Explicitly register themeChange receiver

The unlock activity changed a bit in ICS, so we need to register the
receiver explicitly instead of relying on onResume() to be called in
order to set it up

Change-Id: I9ac9463f249b37466f8daf99d34b85c15b06d43f
parent a5288771
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -124,8 +124,10 @@ public class SimUnlockScreen extends LinearLayout implements KeyguardScreen, Vie

    /** {@inheritDoc} */
    public void onPause() {
        if (mUiContext != null) {
            mContext.unregisterReceiver(mThemeChangeReceiver);
            mUiContext = null;
        }
        mKeyguardStatusViewManager.onPause();
    }

@@ -139,7 +141,6 @@ public class SimUnlockScreen extends LinearLayout implements KeyguardScreen, Vie
        mPinText.setText("");
        mEnteredDigits = 0;

        ThemeUtils.registerThemeChangeReceiver(mContext, mThemeChangeReceiver);
        mKeyguardStatusViewManager.onResume();
    }

@@ -210,6 +211,7 @@ public class SimUnlockScreen extends LinearLayout implements KeyguardScreen, Vie

        if (mSimUnlockProgressDialog == null) {
            mUiContext = ThemeUtils.createUiContext(mContext);
            ThemeUtils.registerThemeChangeReceiver(mContext, mThemeChangeReceiver);

            final Context uiContext = mUiContext != null ? mUiContext : mContext;