Skip to content

Commit

Permalink
Settings: Launch default music player on headset connect
Browse files Browse the repository at this point in the history
Change-Id: Id09065638f1279423ceedef87da1a2edf19f46f4

# Conflicts:
#	res/values/cm_strings.xml
  • Loading branch information
Danesh authored and KalilDev committed Jan 18, 2017
1 parent 9449d91 commit 447573a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions res/values/cm_strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -575,4 +575,10 @@
<string name="data_usage_app_restrict_all_wifi_title">Disable all Wi\u2011Fi data access</string>
<!-- Summary for switch to block app data usage [CHAR LIMIT=NONE] -->
<string name="data_usage_app_restrict_all_wifi_summary">Prevent any use of data access via Wi\u2011Fi networks</string>
<!-- Volume link notification -->
<string name="volume_link_notification_title">Link ringtone &amp; notification volumes</string>

<!-- Launch music player when headset is connected -->
<string name="headset_connect_player_title">Launch music player</string>
<string name="headset_connect_player_summary">Launch the default music player when a headset is connected</string>
</resources>
6 changes: 6 additions & 0 deletions res/xml/sound_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
android:persistent="false"
android:ringtoneType="alarm" />

<!-- Launch music player when headset is connected -->
<cyanogenmod.preference.CMSystemSettingSwitchPreference
android:key="headset_connect_player"
android:title="@string/headset_connect_player_title"
android:summary="@string/headset_connect_player_summary" />

<!-- Other sounds -->
<Preference
android:key="other_sounds"
Expand Down

0 comments on commit 447573a

Please sign in to comment.