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

Commit 68d625be authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update clock when turning the screen on" into qt-r1-dev

parents 7dc20157 bb83b895
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@


package com.android.systemui.doze;
package com.android.systemui.doze;


import static com.android.systemui.doze.DozeMachine.State.DOZE;
import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;
import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD_PAUSED;


import android.app.AlarmManager;
import android.app.AlarmManager;
@@ -116,7 +117,7 @@ public class DozeUi implements DozeMachine.Part {
    public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) {
    public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) {
        switch (newState) {
        switch (newState) {
            case DOZE_AOD:
            case DOZE_AOD:
                if (oldState == DOZE_AOD_PAUSED) {
                if (oldState == DOZE_AOD_PAUSED || oldState == DOZE) {
                    // Whenever turning on the display, it's necessary to push a new frame.
                    // Whenever turning on the display, it's necessary to push a new frame.
                    // The display buffers will be empty and need to be filled.
                    // The display buffers will be empty and need to be filled.
                    mHost.dozeTimeTick();
                    mHost.dozeTimeTick();