diff options
author | Craig Mautner <cmautner@google.com> | 2013-07-22 10:37:43 -0700 |
---|---|---|
committer | Craig Mautner <cmautner@google.com> | 2013-07-22 10:37:43 -0700 |
commit | d4ec332428fcb3d6cf2ca3ecb3a485dd15c54cc9 (patch) | |
tree | 3cd2bd138917eeb0332ff44ab6c594e0579d272c /policy/src | |
parent | acb837fe632b79d52af0c683957cee8b567be74a (diff) | |
download | frameworks_base-d4ec332428fcb3d6cf2ca3ecb3a485dd15c54cc9.zip frameworks_base-d4ec332428fcb3d6cf2ca3ecb3a485dd15c54cc9.tar.gz frameworks_base-d4ec332428fcb3d6cf2ca3ecb3a485dd15c54cc9.tar.bz2 |
Restore nav bar position when wm size is reset.
The mNavigationBarCanMove variable was not reset when the dimensions
were restored using 'adb shell wm size reset'. This change restores
the correct value to it.
Fixes bug 9885741.
Change-Id: I6c9d3107fbc8a1e7acc0249691f4542cd8c07e93
Diffstat (limited to 'policy/src')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 2460a91..bd56ee0 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1045,10 +1045,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { // SystemUI (status bar) layout policy int shortSizeDp = shortSize * DisplayMetrics.DENSITY_DEFAULT / density; - if (shortSizeDp < 600) { - // Allow the navigation bar to move on small devices (phones). - mNavigationBarCanMove = true; - } + // Allow the navigation bar to move on small devices (phones). + mNavigationBarCanMove = shortSizeDp < 600; mHasNavigationBar = mContext.getResources().getBoolean( com.android.internal.R.bool.config_showNavigationBar); |