OSDN Git Service

Fix wrong wallpaper AoD state
authorLucas Dupin <dupin@google.com>
Wed, 20 Dec 2017 01:28:31 +0000 (17:28 -0800)
committerLucas Dupin <dupin@google.com>
Wed, 20 Dec 2017 01:28:31 +0000 (17:28 -0800)
SysUI was sending the wrong AoD state to the
wallpaper because of a missing case statement.

Test: cover proximity sensor during AoD, observe.
Change-Id: I1524fd0684f0436029509a9b8655b586a76b6402

packages/SystemUI/src/com/android/systemui/doze/DozeWallpaperState.java

index 50c1ede..ee41001 100644 (file)
@@ -53,6 +53,8 @@ public class DozeWallpaperState implements DozeMachine.Part {
         final boolean isAmbientMode;
         switch (newState) {
             case DOZE_AOD:
+            case DOZE_AOD_PAUSING:
+            case DOZE_AOD_PAUSED:
             case DOZE_REQUEST_PULSE:
             case DOZE_PULSING:
             case DOZE_PULSE_DONE: