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

Commit ef5cf59b authored by Luca Stefani's avatar Luca Stefani Committed by Michael Bestas
Browse files

Revert "Disable custom clock faces in SystemUI"

This reverts commit 61f04734.

Change-Id: Ifd9aae4909e048673c3c16229c72fadcbdc2e3b9
parent 43000e14
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@ import javax.inject.Named;
public class KeyguardClockSwitch extends RelativeLayout {

    private static final String TAG = "KeyguardClockSwitch";
    private static final boolean CUSTOM_CLOCKS_ENABLED = false;

    /**
     * Animation fraction when text is transitioned to/from bold.
@@ -200,9 +199,7 @@ public class KeyguardClockSwitch extends RelativeLayout {
    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        if (CUSTOM_CLOCKS_ENABLED) {
        mClockManager.addOnClockChangedListener(mClockChangedListener);
        }
        mStatusBarStateController.addCallback(mStateListener);
        mSysuiColorExtractor.addOnColorsChangedListener(mColorsListener);
        updateColors();
@@ -211,9 +208,7 @@ public class KeyguardClockSwitch extends RelativeLayout {
    @Override
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        if (CUSTOM_CLOCKS_ENABLED) {
        mClockManager.removeOnClockChangedListener(mClockChangedListener);
        }
        mStatusBarStateController.removeCallback(mStateListener);
        mSysuiColorExtractor.removeOnColorsChangedListener(mColorsListener);
        setClockPlugin(null);