summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/CmSystem.java6
-rw-r--r--core/res/res/values/config.xml5
2 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/provider/CmSystem.java b/core/java/android/provider/CmSystem.java
index 5644a8b..6e98f15 100644
--- a/core/java/android/provider/CmSystem.java
+++ b/core/java/android/provider/CmSystem.java
@@ -61,6 +61,8 @@ public final class CmSystem {
public static final int CM_DEFAULT_REMAPPED_BOTH_VOL_INDEX=20;
public static final int CM_DEFAULT_REMAPPED_LONG_BOTH_VOL_INDEX=21;
+ public static final int CM_DEFAULT_HOME_ON_LONGPRESS_BACK=22;
+
// not a keycode, so negative value can never be considered keycode - user -1, -2, -3...
// used in PhoneWindowManager
public static final int VOLUME_ACTION_LONG_HOME = -1;
@@ -309,6 +311,10 @@ public final class CmSystem {
resId=R.bool.cm_default_reverse_volume_behavior;
break;
+ case CM_DEFAULT_HOME_ON_LONGPRESS_BACK:
+ resId=R.bool.cm_default_home_on_longpress_back;
+ break;
+
// integer values
case CM_DEFAULT_UNHIDE_BUTTON_INDEX:
resId=R.integer.cm_default_unhide_button_index;
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 07de23c..d2156ee 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -544,6 +544,11 @@
combinations will need this too. -->
<bool name="cm_default_recentapps_tablet_workaround">false</bool>
+ <!-- toggles behavior of longpress on back button. default (false) triggers
+ nothing (or kills the current app). enabling (true) this options triggers
+ home screen. -->
+ <bool name="cm_default_home_on_longpress_back">false</bool>
+
<!-- Set this to true to get data working on some Motorola phones -->
<bool name="config_rilNeedsNullPath">false</bool>