summaryrefslogtreecommitdiffstats
path: root/policy/src/com/android/internal
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2013-08-26 17:58:58 -0400
committerJohn Spurlock <jspurlock@google.com>2013-08-27 12:56:41 -0400
commitef4adae5de5fd02f4b98ea7528f5888b6397dd8e (patch)
treea74357b94d74faa43e7535667ef1632d2bbeece7 /policy/src/com/android/internal
parentec566dd06f780c1a368d9472235e5d1fe3c3bda9 (diff)
downloadframeworks_base-ef4adae5de5fd02f4b98ea7528f5888b6397dd8e.zip
frameworks_base-ef4adae5de5fd02f4b98ea7528f5888b6397dd8e.tar.gz
frameworks_base-ef4adae5de5fd02f4b98ea7528f5888b6397dd8e.tar.bz2
Allow wallpaper to extend into the entire screen.
Previously it was constrained to displayInfo.appWidth/appHeight which comes from PWM.getNonDecorDisplayWidth/Height, which includes the nav bar. Also adjust window layout to entire screen. This allows wallpaper to extend into the navigation bar region, important if the nav bar is hidden or transparent. Bug:10505328 Change-Id: Ia6057b9c57b476a48f3b2d8b6368fd631e944a3e
Diffstat (limited to 'policy/src/com/android/internal')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindowManager.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index da98f27..8fc6115 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -3156,14 +3156,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
+ mOverscanScreenWidth;
pf.bottom = df.bottom = of.bottom = cf.bottom = mOverscanScreenTop
+ mOverscanScreenHeight;
- } else if (attrs.type == WindowManager.LayoutParams.TYPE_WALLPAPER) {
- // The wallpaper mostly goes into the overscan region.
- pf.left = df.left = of.left = cf.left = mRestrictedOverscanScreenLeft;
- pf.top = df.top = of.top = cf.top = mRestrictedOverscanScreenTop;
+ } else if (attrs.type == TYPE_WALLPAPER) {
+ // The wallpaper also has Real Ultimate Power.
+ pf.left = df.left = of.left = cf.left = mUnrestrictedScreenLeft;
+ pf.top = df.top = of.top = cf.top = mUnrestrictedScreenTop;
pf.right = df.right = of.right = cf.right
- = mRestrictedOverscanScreenLeft + mRestrictedOverscanScreenWidth;
+ = mUnrestrictedScreenLeft + mUnrestrictedScreenWidth;
pf.bottom = df.bottom = of.bottom = cf.bottom
- = mRestrictedOverscanScreenTop + mRestrictedOverscanScreenHeight;
+ = mUnrestrictedScreenTop + mUnrestrictedScreenHeight;
} else if ((attrs.flags & FLAG_LAYOUT_IN_OVERSCAN) != 0
&& attrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW
&& attrs.type <= WindowManager.LayoutParams.LAST_SUB_WINDOW) {