am 51a400eb: Merge "Clear FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS for dreams" into lmp-dev
* commit '51a400eb440c89fb06a47371bb7b026f00edb09c': Clear FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS for dreams
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user