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

Commit d1c790c5 authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Update theme after registering config listener" into qt-dev

am: e44e4c63

Change-Id: I3ddecd339c87a6973a705b29226181646b78c97d
parents b147a9f9 e44e4c63
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -87,15 +87,14 @@ public class KeyguardMessageArea extends TextView implements SecurityMessageDisp
        monitor.registerCallback(mInfoCallback);
        mHandler = new Handler(Looper.myLooper());
        mConfigurationController = configurationController;

        onThemeChanged();
        update();
    }

    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        mConfigurationController.addCallback(this);
        onThemeChanged();
    }

    @Override
@@ -116,8 +115,8 @@ public class KeyguardMessageArea extends TextView implements SecurityMessageDisp
        });
        ColorStateList newTextColors = ColorStateList.valueOf(array.getColor(0, Color.RED));
        array.recycle();
        setTextColor(newTextColors);
        mDefaultColorState = newTextColors;
        update();
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,6 @@ public class LockIcon extends KeyguardAffordanceView implements OnUserInfoChange
        mAccessibilityController = accessibilityController;
        mConfigurationController = configurationController;
        mStatusBarStateController = statusBarStateController;
        onThemeChanged();
    }

    @Override
@@ -133,6 +132,7 @@ public class LockIcon extends KeyguardAffordanceView implements OnUserInfoChange
        mConfigurationController.addCallback(this);
        mKeyguardUpdateMonitor.registerCallback(mUpdateMonitorCallback);
        mUnlockMethodCache.addListener(this);
        onThemeChanged();
    }

    @Override