diff options
| author | Dianne Hackborn <hackbod@google.com> | 2011-06-01 12:43:35 -0700 | 
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2011-06-01 12:43:35 -0700 | 
| commit | b9e2f68b2865307db25fa7295b7ba3bd51c7521a (patch) | |
| tree | a894ce4b7a8ae57c99b286d40aceb040a17fc119 /policy | |
| parent | d19fbe34e33fa79121e2822d0063f3aec350b3e5 (diff) | |
| parent | 13e2bef4f67c5bc5ce93aade1431ae3332d361f0 (diff) | |
| download | frameworks_base-b9e2f68b2865307db25fa7295b7ba3bd51c7521a.zip frameworks_base-b9e2f68b2865307db25fa7295b7ba3bd51c7521a.tar.gz frameworks_base-b9e2f68b2865307db25fa7295b7ba3bd51c7521a.tar.bz2  | |
am 13e2bef4: am 80cf4e79: Merge "Fix issue #4500511: Holo effect background doesn\'t reach top of screen anymore" into honeycomb-mr2
* commit '13e2bef4f67c5bc5ce93aade1431ae3332d361f0':
  Fix issue #4500511: Holo effect background doesn't reach top of screen anymore
Diffstat (limited to 'policy')
| -rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 74 | 
1 files changed, 38 insertions, 36 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 36201ac..a1e4a2c 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1781,21 +1781,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {                      // frame is the same as the one we are attached to.                      setAttachedWindowFrames(win, fl, sim, attached, true, pf, df, cf, vf);                  } else { -                    if (attrs.type == TYPE_STATUS_BAR_PANEL) { -                        // Status bar panels are the only windows who can go on top of -                        // the status bar.  They are protected by the STATUS_BAR_SERVICE -                        // permission, so they have the same privileges as the status -                        // bar itself. -                        pf.left = df.left = mUnrestrictedScreenLeft; -                        pf.top = df.top = mUnrestrictedScreenTop; -                        pf.right = df.right = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth; -                        pf.bottom = df.bottom = mUnrestrictedScreenTop+mUnrestrictedScreenHeight; -                    } else { -                        pf.left = df.left = mRestrictedScreenLeft; -                        pf.top = df.top = mRestrictedScreenTop; -                        pf.right = df.right = mRestrictedScreenLeft+mRestrictedScreenWidth; -                        pf.bottom = df.bottom = mRestrictedScreenTop+mRestrictedScreenHeight; -                    } +                    pf.left = df.left = mRestrictedScreenLeft; +                    pf.top = df.top = mRestrictedScreenTop; +                    pf.right = df.right = mRestrictedScreenLeft+mRestrictedScreenWidth; +                    pf.bottom = df.bottom = mRestrictedScreenTop+mRestrictedScreenHeight;                      if (adjust != SOFT_INPUT_ADJUST_RESIZE) {                          cf.left = mDockLeft;                          cf.top = mDockTop; @@ -1848,28 +1837,41 @@ public class PhoneWindowManager implements WindowManagerPolicy {              } else {                  // Otherwise, a normal window must be placed inside the content                  // of all screen decorations. -                pf.left = mContentLeft; -                pf.top = mContentTop; -                pf.right = mContentRight; -                pf.bottom = mContentBottom; -                if (adjust != SOFT_INPUT_ADJUST_RESIZE) { -                    df.left = cf.left = mDockLeft; -                    df.top = cf.top = mDockTop; -                    df.right = cf.right = mDockRight; -                    df.bottom = cf.bottom = mDockBottom; -                } else { -                    df.left = cf.left = mContentLeft; -                    df.top = cf.top = mContentTop; -                    df.right = cf.right = mContentRight; -                    df.bottom = cf.bottom = mContentBottom; -                } -                if (adjust != SOFT_INPUT_ADJUST_NOTHING) { -                    vf.left = mCurLeft; -                    vf.top = mCurTop; -                    vf.right = mCurRight; -                    vf.bottom = mCurBottom; +                if (attrs.type == TYPE_STATUS_BAR_PANEL) { +                    // Status bar panels are the only windows who can go on top of +                    // the status bar.  They are protected by the STATUS_BAR_SERVICE +                    // permission, so they have the same privileges as the status +                    // bar itself. +                    pf.left = df.left = cf.left = vf.left = mUnrestrictedScreenLeft; +                    pf.top = df.top = cf.top = vf.top = mUnrestrictedScreenTop; +                    pf.right = df.right = cf.right = vf.right +                            = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth; +                    pf.bottom = df.bottom = cf.bottom = vf.bottom +                            = mUnrestrictedScreenTop+mUnrestrictedScreenHeight;                  } else { -                    vf.set(cf); +                    pf.left = mContentLeft; +                    pf.top = mContentTop; +                    pf.right = mContentRight; +                    pf.bottom = mContentBottom; +                    if (adjust != SOFT_INPUT_ADJUST_RESIZE) { +                        df.left = cf.left = mDockLeft; +                        df.top = cf.top = mDockTop; +                        df.right = cf.right = mDockRight; +                        df.bottom = cf.bottom = mDockBottom; +                    } else { +                        df.left = cf.left = mContentLeft; +                        df.top = cf.top = mContentTop; +                        df.right = cf.right = mContentRight; +                        df.bottom = cf.bottom = mContentBottom; +                    } +                    if (adjust != SOFT_INPUT_ADJUST_NOTHING) { +                        vf.left = mCurLeft; +                        vf.top = mCurTop; +                        vf.right = mCurRight; +                        vf.bottom = mCurBottom; +                    } else { +                        vf.set(cf); +                    }                  }              }          }  | 
