Loading core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -828,4 +828,8 @@ config to 7. --> <integer name="config_deviceHardwareKeys">15</integer> <!-- Timeout in MS for how long you have to long-press the back key to kill the foreground app. --> <integer name="config_backKillTimeout">2000</integer> </resources> policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +4 −1 Original line number Diff line number Diff line Loading @@ -367,6 +367,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { static final int DEFAULT_ACCELEROMETER_ROTATION = 0; int mAccelerometerDefault = DEFAULT_ACCELEROMETER_ROTATION; boolean mHasSoftInput = false; int mBackKillTimeout; int mPointerLocationMode = 0; PointerLocationView mPointerLocationView = null; Loading Loading @@ -993,6 +994,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { com.android.internal.R.integer.config_lidKeyboardAccessibility); mLidNavigationAccessibility = mContext.getResources().getInteger( com.android.internal.R.integer.config_lidNavigationAccessibility); mBackKillTimeout = mContext.getResources().getInteger( com.android.internal.R.integer.config_backKillTimeout); // register for dock events IntentFilter filter = new IntentFilter(); filter.addAction(UiModeManager.ACTION_ENTER_CAR_MODE); Loading Loading @@ -1894,7 +1897,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (Settings.Secure.getInt(mContext.getContentResolver(), Settings.Secure.KILL_APP_LONGPRESS_BACK, 0) == 1) { if (down && repeatCount == 0) { mHandler.postDelayed(mBackLongPress, 2000); mHandler.postDelayed(mBackLongPress, mBackKillTimeout); } } } Loading Loading
core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -828,4 +828,8 @@ config to 7. --> <integer name="config_deviceHardwareKeys">15</integer> <!-- Timeout in MS for how long you have to long-press the back key to kill the foreground app. --> <integer name="config_backKillTimeout">2000</integer> </resources>
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +4 −1 Original line number Diff line number Diff line Loading @@ -367,6 +367,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { static final int DEFAULT_ACCELEROMETER_ROTATION = 0; int mAccelerometerDefault = DEFAULT_ACCELEROMETER_ROTATION; boolean mHasSoftInput = false; int mBackKillTimeout; int mPointerLocationMode = 0; PointerLocationView mPointerLocationView = null; Loading Loading @@ -993,6 +994,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { com.android.internal.R.integer.config_lidKeyboardAccessibility); mLidNavigationAccessibility = mContext.getResources().getInteger( com.android.internal.R.integer.config_lidNavigationAccessibility); mBackKillTimeout = mContext.getResources().getInteger( com.android.internal.R.integer.config_backKillTimeout); // register for dock events IntentFilter filter = new IntentFilter(); filter.addAction(UiModeManager.ACTION_ENTER_CAR_MODE); Loading Loading @@ -1894,7 +1897,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (Settings.Secure.getInt(mContext.getContentResolver(), Settings.Secure.KILL_APP_LONGPRESS_BACK, 0) == 1) { if (down && repeatCount == 0) { mHandler.postDelayed(mBackLongPress, 2000); mHandler.postDelayed(mBackLongPress, mBackKillTimeout); } } } Loading