diff options
author | Joe Onorato <joeo@google.com> | 2010-11-26 14:04:54 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2010-11-26 14:04:54 -0800 |
commit | 50262e587ccd4b2fb0aa28c3b2f779b536825639 (patch) | |
tree | 93f3722a46b8402b6c9792a46bed2daca11b1f55 /policy | |
parent | a8e34189073c8f29f8e95db488b9a2a81019721e (diff) | |
download | frameworks_base-50262e587ccd4b2fb0aa28c3b2f779b536825639.zip frameworks_base-50262e587ccd4b2fb0aa28c3b2f779b536825639.tar.gz frameworks_base-50262e587ccd4b2fb0aa28c3b2f779b536825639.tar.bz2 |
Long press on home shouldn't open recents
Change-Id: Iafb8205878768b74a833528532ab399d44b04263
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index f892e9e..1373627 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -588,7 +588,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { // We can't initialize this in init() since the configuration hasn't been loaded yet. if (mLongPressOnHomeBehavior < 0) { mLongPressOnHomeBehavior - = mContext.getResources().getInteger(R.integer.config_longPressOnPowerBehavior); + = mContext.getResources().getInteger(R.integer.config_longPressOnHomeBehavior); if (mLongPressOnHomeBehavior < LONG_PRESS_HOME_NOTHING || mLongPressOnHomeBehavior > LONG_PRESS_HOME_RECENT_ACTIVITY) { mLongPressOnHomeBehavior = LONG_PRESS_HOME_NOTHING; @@ -600,7 +600,6 @@ public class PhoneWindowManager implements WindowManagerPolicy { sendCloseSystemWindows(SYSTEM_DIALOG_REASON_RECENT_APPS); } - // Use 3d Recents dialog if (mLongPressOnHomeBehavior == LONG_PRESS_HOME_RECENT_DIALOG) { // Fallback to dialog if we fail to launch the above. if (mRecentAppsDialog == null) { |