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

Commit e4a6d332 authored by Luca Stefani's avatar Luca Stefani Committed by Bruno Martins
Browse files

Revert "Disable custom clock faces in SystemUI"

This reverts commit 61f04734.

Change-Id: Ifd9aae4909e048673c3c16229c72fadcbdc2e3b9
parent 1a2b5083
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -49,7 +49,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.
@@ -193,9 +192,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();
@@ -204,9 +201,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);