Long press on home shouldn't open recents

Change-Id: Iafb8205878768b74a833528532ab399d44b04263
This commit is contained in:
Joe Onorato
2010-11-26 14:04:54 -08:00
parent a8e3418907
commit 50262e587c
3 changed files with 3 additions and 4 deletions

View File

@@ -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>

View File

@@ -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:

View File

@@ -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) {