Long press on home shouldn't open recents
Change-Id: Iafb8205878768b74a833528532ab399d44b04263
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user