diff options
author | Adrian Roos <roosa@google.com> | 2014-09-29 13:49:38 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-29 13:49:40 +0000 |
commit | 51a400eb440c89fb06a47371bb7b026f00edb09c (patch) | |
tree | a429ab2ea140281bb1c6d170cf3bfcc3c0d9106f | |
parent | 79107083ca50b99c9e7b678d7739b9ab4798db0f (diff) | |
parent | 9d38f35a8f4e2ae671337af20c640dffa92570c5 (diff) | |
download | frameworks_base-51a400eb440c89fb06a47371bb7b026f00edb09c.zip frameworks_base-51a400eb440c89fb06a47371bb7b026f00edb09c.tar.gz frameworks_base-51a400eb440c89fb06a47371bb7b026f00edb09c.tar.bz2 |
Merge "Clear FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS for dreams" into lmp-dev
-rw-r--r-- | core/java/android/service/dreams/DreamService.java | 3 |
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 92647f0..38b0439 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( |