diff options
author | Adrian Roos <roosa@google.com> | 2014-11-06 18:15:16 +0100 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2014-11-10 17:46:57 +0100 |
commit | 37d7a68de7e353c31a3a4736054cd86f0e002eaf (patch) | |
tree | c2dc2c064b1e57b29efdd0b233a4725f42857585 /core/java/android/service | |
parent | 3e54ce273abafec3a0eca9e7064d5151ec096f0b (diff) | |
download | frameworks_base-37d7a68de7e353c31a3a4736054cd86f0e002eaf.zip frameworks_base-37d7a68de7e353c31a3a4736054cd86f0e002eaf.tar.gz frameworks_base-37d7a68de7e353c31a3a4736054cd86f0e002eaf.tar.bz2 |
Fix inset hinting when adding window
Windows with FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS were
getting an incorrect content inset hint, because the
hinting didn't see the adjusted systemUiVisibility.
Also adds hinting for the stable insets.
Bug: 17508238
Change-Id: If9647277feb6811b15665b801accd896c51dbd12
Diffstat (limited to 'core/java/android/service')
-rw-r--r-- | core/java/android/service/wallpaper/WallpaperService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/service/wallpaper/WallpaperService.java b/core/java/android/service/wallpaper/WallpaperService.java index 26e9a30..ceaf5f8 100644 --- a/core/java/android/service/wallpaper/WallpaperService.java +++ b/core/java/android/service/wallpaper/WallpaperService.java @@ -675,7 +675,8 @@ public abstract class WallpaperService extends Service { com.android.internal.R.style.Animation_Wallpaper; mInputChannel = new InputChannel(); if (mSession.addToDisplay(mWindow, mWindow.mSeq, mLayout, View.VISIBLE, - Display.DEFAULT_DISPLAY, mContentInsets, mInputChannel) < 0) { + Display.DEFAULT_DISPLAY, mContentInsets, mStableInsets, + mInputChannel) < 0) { Log.w(TAG, "Failed to add window while updating wallpaper surface."); return; } |