diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-11-10 14:12:25 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-10 14:12:25 -0800 |
commit | 0f70e482c8aa7ce9c5676b1226ff98b63fb991e7 (patch) | |
tree | 12b3d8f6f6db77443a72618d8102b06bcf24ce69 /policy | |
parent | 67121fd7b241ceafe7339f5f154781572819f87b (diff) | |
parent | 56b53b597f015fa73ca339deff62eadf287297ae (diff) | |
download | frameworks_base-0f70e482c8aa7ce9c5676b1226ff98b63fb991e7.zip frameworks_base-0f70e482c8aa7ce9c5676b1226ff98b63fb991e7.tar.gz frameworks_base-0f70e482c8aa7ce9c5676b1226ff98b63fb991e7.tar.bz2 |
Merge "Fix issue #5470311: Activity with android:configChanges defined..." into ics-mr1
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index aa1c81c..1a068a3 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1184,7 +1184,13 @@ public class PhoneWindowManager implements WindowManagerPolicy { } public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation) { - return getNonDecorDisplayHeight(fullWidth, fullHeight, rotation); + // This is the same as getNonDecorDisplayHeight, unless the status bar + // can hide. If the status bar can hide, we don't count that as part + // of the decor; however for purposes of configurations, we do want to + // exclude it since applications can't generally use that part of the + // screen. + return getNonDecorDisplayHeight(fullWidth, fullHeight, rotation) + - (mStatusBarCanHide ? mStatusBarHeight : 0); } public boolean doesForceHide(WindowState win, WindowManager.LayoutParams attrs) { |