summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaman Tenneti <rtenneti@google.com>2020-07-13 12:13:32 -0700
committerdoc HD <doc.divxm@gmail.com>2020-08-09 11:31:28 +0300
commit997ef7053077e6db77713b35e6b364ce1b60c948 (patch)
tree9495b601f5d4c5d38efc638abf0fae105644dcad
parentff8aeb9b70c403708640f14636ae5abf2796db3d (diff)
DeskClock: Fix alarm clock screen show black when screen locked;
Root cause: API ActivityTaskManagerService.notifyKeyguardFlagsChanged is called multiple times, which causes the activity status abnormal. Solution: Add 'android:showWhenLocked = true' to ensure activity show on the top even when screen locked. BUG: 156311117 Test: manual - Tested the DeskClock UI manually and tested the alarm. $ make -j 40 $ ls -l out/target/product/bonito/product/app/DeskClock/DeskClock.apk -rw-r----- 1 rtenneti primarygroup 6117353 Jul 13 11:35 out/target/product/bonito/product/app/DeskClock/DeskClock.apk $ adb install -r out/target/product/bonito/product/app/DeskClock/DeskClock.apk + Verified by setting up the alaram, lock the screen and waiting for the alarm to go off. Change-Id: I69c44571cd86c21203311c89081c8935d5ed1450
-rw-r--r--AndroidManifest.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e28e3192d..27da155e7 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -149,6 +149,7 @@
android:excludeFromRecents="true"
android:resizeableActivity="false"
android:showOnLockScreen="true"
+ android:showWhenLocked="true"
android:taskAffinity=""
android:windowSoftInputMode="stateAlwaysHidden" />