diff options
-rw-r--r-- | core/res/res/values-xlarge/config.xml | 2 | ||||
-rw-r--r-- | core/res/res/values/config.xml | 2 | ||||
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/core/res/res/values-xlarge/config.xml b/core/res/res/values-xlarge/config.xml index 37f59c8..8ed1c3e 100644 --- a/core/res/res/values-xlarge/config.xml +++ b/core/res/res/values-xlarge/config.xml @@ -31,7 +31,7 @@ <bool name="config_enableLockScreenRotation">true</bool> <!-- see comment in values/config.xml --> - <integer name="config_longPressOnHomeBehavior">1</integer> + <integer name="config_longPressOnHomeBehavior">0</integer> </resources> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 61223b3..03d581f 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -355,7 +355,7 @@ 1 - Recent apps dialog 2 - Recent apps activity in SystemUI --> - <integer name="config_longPressOnHomeBehavior">0</integer> + <integer name="config_longPressOnHomeBehavior">1</integer> <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. The N entries of this array define N + 1 zones as follows: 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) { |