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

Commit ae926733 authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Call ClockPlugin#onTimeTick on lock screen

Fixes: 129056419
Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
Change-Id: If4cabc696a0ac5a02514634aa7670ef1f9db4b72
parent 289cd11c
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -275,14 +275,11 @@ public class KeyguardClockSwitch extends RelativeLayout {
        return mClockView.getTextSize();
    }

    public void refresh() {
        mClockView.refresh();
    }

    /**
     * Notifies that time tick alarm from doze service fired.
     * Refresh the time of the clock, due to either time tick broadcast or doze time tick alarm.
     */
    public void dozeTimeTick() {
    public void refresh() {
        mClockView.refresh();
        if (mClockPlugin != null) {
            mClockPlugin.onTimeTick();
        }
+0 −1
Original line number Diff line number Diff line
@@ -214,7 +214,6 @@ public class KeyguardStatusView extends GridLayout implements
    public void dozeTimeTick() {
        refreshTime();
        mKeyguardSlice.refresh();
        mClockView.dozeTimeTick();
    }

    private void refreshTime() {