aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-02-10 01:39:17 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-12 13:31:31 -0800
commitfcadbf539cd1b78bd9c731212c7668e431ebf441 (patch)
tree9e061cb7679c703aeaf423086217bc58b857c845
parent50cf885cca95ed7fee1e5a8d4637f0399f8e72aa (diff)
downloadvendor_cmsdk-fcadbf539cd1b78bd9c731212c7668e431ebf441.tar.gz
vendor_cmsdk-fcadbf539cd1b78bd9c731212c7668e431ebf441.tar.bz2
vendor_cmsdk-fcadbf539cd1b78bd9c731212c7668e431ebf441.zip
cmsdk: launch default music player on headset connect [3/3]
Change-Id: Ibbb0607a56ab4d9246c14632eb4199558866854a
-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";