aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/cm_current.txt1
-rw-r--r--src/java/cyanogenmod/providers/CMSettings.java10
-rw-r--r--system-api/cm_system-current.txt1
3 files changed, 12 insertions, 0 deletions
diff --git a/api/cm_current.txt b/api/cm_current.txt
index 5eadbbf..f0a2b1d 100644
--- a/api/cm_current.txt
+++ b/api/cm_current.txt
@@ -815,6 +815,7 @@ package cyanogenmod.providers {
field public static final java.lang.String ENABLE_PEOPLE_LOOKUP = "enable_people_lookup";
field public static final java.lang.String ENABLE_REVERSE_LOOKUP = "enable_reverse_lookup";
field public static final java.lang.String FORWARD_LOOKUP_PROVIDER = "forward_lookup_provider";
+ field public static final java.lang.String HEADSET_CONNECT_PLAYER = "headset_connect_player";
field public static final java.lang.String HIGH_TOUCH_SENSITIVITY_ENABLE = "high_touch_sensitivity_enable";
field public static final java.lang.String HOME_WAKE_SCREEN = "home_wake_screen";
field public static final java.lang.String INCREASING_RING = "increasing_ring";
diff --git a/src/java/cyanogenmod/providers/CMSettings.java b/src/java/cyanogenmod/providers/CMSettings.java
index 82dd0cb..21bea12 100644
--- a/src/java/cyanogenmod/providers/CMSettings.java
+++ b/src/java/cyanogenmod/providers/CMSettings.java
@@ -1727,6 +1727,14 @@ public final class CMSettings {
sBooleanValidator;
/**
+ * Whether or not to launch default music player when headset is connected
+ */
+ public static final String HEADSET_CONNECT_PLAYER = "headset_connect_player";
+
+ /** @hide */
+ public static final Validator HEADSET_CONNECT_PLAYER_VALIDATOR = sBooleanValidator;
+
+ /**
* I can haz more bukkits
* @hide
*/
@@ -1829,6 +1837,7 @@ public final class CMSettings {
CMSettings.System.STATUS_BAR_SHOW_BATTERY_PERCENT,
CMSettings.System.VOLUME_KEYS_CONTROL_RING_STREAM,
CMSettings.System.NAVIGATION_BAR_MENU_ARROW_KEYS,
+ CMSettings.System.HEADSET_CONNECT_PLAYER,
};
/**
@@ -1973,6 +1982,7 @@ public final class CMSettings {
NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES_VALIDATOR);
VALIDATORS.put(NOTIFICATION_LIGHT_COLOR_AUTO,
NOTIFICATION_LIGHT_COLOR_AUTO_VALIDATOR);
+ VALIDATORS.put(HEADSET_CONNECT_PLAYER, HEADSET_CONNECT_PLAYER_VALIDATOR);
VALIDATORS.put(__MAGICAL_TEST_PASSING_ENABLER,
__MAGICAL_TEST_PASSING_ENABLER_VALIDATOR);
};
diff --git a/system-api/cm_system-current.txt b/system-api/cm_system-current.txt
index 5eadbbf..f0a2b1d 100644
--- a/system-api/cm_system-current.txt
+++ b/system-api/cm_system-current.txt
@@ -815,6 +815,7 @@ package cyanogenmod.providers {
field public static final java.lang.String ENABLE_PEOPLE_LOOKUP = "enable_people_lookup";
field public static final java.lang.String ENABLE_REVERSE_LOOKUP = "enable_reverse_lookup";
field public static final java.lang.String FORWARD_LOOKUP_PROVIDER = "forward_lookup_provider";
+ field public static final java.lang.String HEADSET_CONNECT_PLAYER = "headset_connect_player";
field public static final java.lang.String HIGH_TOUCH_SENSITIVITY_ENABLE = "high_touch_sensitivity_enable";
field public static final java.lang.String HOME_WAKE_SCREEN = "home_wake_screen";
field public static final java.lang.String INCREASING_RING = "increasing_ring";