summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2014-09-29 20:48:00 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-09-29 20:48:00 +0000
commit0c92c858b039a40b066136cdbf13ae5a38a00b1d (patch)
tree5c0987990839586f1865231116eefc7a52fc5837
parent5b002995ad5bda15fc7456228789b6b94ae2522c (diff)
parent51a400eb440c89fb06a47371bb7b026f00edb09c (diff)
am 51a400eb: Merge "Clear FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS for dreams" into lmp-dev
* commit '51a400eb440c89fb06a47371bb7b026f00edb09c': Clear FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS for dreams
-rw-r--r--core/java/android/service/dreams/DreamService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/service/dreams/DreamService.java b/core/java/android/service/dreams/DreamService.java
index 92647f05190f..38b043971572 100644
--- a/core/java/android/service/dreams/DreamService.java
+++ b/core/java/android/service/dreams/DreamService.java
@@ -967,6 +967,9 @@ public class DreamService extends Service implements Window.Callback {
| (mScreenBright ? WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON : 0)
);
mWindow.setAttributes(lp);
+ // Workaround: Currently low-profile and in-window system bar backgrounds don't go
+ // along well. Dreams usually don't need such bars anyways, so disable them by default.
+ mWindow.clearFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
mWindow.setWindowManager(null, windowToken, "dream", true);
applySystemUiVisibilityFlags(