From 7f33e6df8a2640bf985f93fb1b15c8264ddd9dc9 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 12 Jun 2019 15:47:37 -0700 Subject: [PATCH] Also dispatching that we finished waking up after booting Previously we only were dispatching the startedWakingUp call after boot but never actually told our listeners that we also finished. This could lead to pretty bad bugs where notifications were stuck visible on AOD because the listener thought that we were still waking up. Fixes: 134765187 Test: boot, turn screen off, send pulsing notification, observe that it goes away Change-Id: I7c8c947d8595b4f785c487a4c375d240f5f5444c --- .../core/java/com/android/server/policy/PhoneWindowManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java index d624a85acb6e0..7e706ad26f663 100644 --- a/services/core/java/com/android/server/policy/PhoneWindowManager.java +++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java @@ -4863,6 +4863,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } } startedWakingUp(ON_BECAUSE_OF_UNKNOWN); + finishedWakingUp(ON_BECAUSE_OF_UNKNOWN); screenTurningOn(null); screenTurnedOn(); }