Skip to content

Commit 9d38f35

Browse files
committed
Clear FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS for dreams
By default, dreams should not get the in-window bars because those conflict with the lights-out bar mode. Bug: 17367264 Change-Id: I8c041c706f7a7c4791ed4760c34a5618fb7423d7
1 parent 311fc0b commit 9d38f35

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/java/android/service/dreams/DreamService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,9 @@ private final void attach(IBinder windowToken, boolean canDoze) {
967967
| (mScreenBright ? WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON : 0)
968968
);
969969
mWindow.setAttributes(lp);
970+
// Workaround: Currently low-profile and in-window system bar backgrounds don't go
971+
// along well. Dreams usually don't need such bars anyways, so disable them by default.
972+
mWindow.clearFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
970973
mWindow.setWindowManager(null, windowToken, "dream", true);
971974

972975
applySystemUiVisibilityFlags(

0 commit comments

Comments
 (0)