diff options
author | Daniel Sandler <dsandler@google.com> | 2010-03-02 20:24:49 -0500 |
---|---|---|
committer | Daniel Sandler <dsandler@google.com> | 2010-03-04 14:06:06 -0500 |
commit | fc01d062c13218e86127ddbfa018ac9c69d68c35 (patch) | |
tree | d52d606c17c5f8e54fd16d5cf6127d1a1c6e3760 /res | |
parent | 4f94e0bee65105d2cb351001babdbd09ae4c84ff (diff) | |
download | packages_apps_settings-fc01d062c13218e86127ddbfa018ac9c69d68c35.zip packages_apps_settings-fc01d062c13218e86127ddbfa018ac9c69d68c35.tar.gz packages_apps_settings-fc01d062c13218e86127ddbfa018ac9c69d68c35.tar.bz2 |
Add a checkbox to the Dock settings to control insertion/removal sound effects.
The sounds are present in the build but are turned off by
default (and there isn't currently a UI to turn them on).
(Mentioned in http://b/2469862)
Change-Id: I9ded1d67cc19204113047aeb8fc8b0123cea1427
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 6 | ||||
-rw-r--r-- | res/xml/dock_settings.xml | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 49231d1..f06211c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1033,6 +1033,12 @@ <string name="dock_not_found_title">Dock not found</string> <!-- Dock not found dialog text --> <string name="dock_not_found_text">The phone must be docked to configure dock audio</string> + <!-- Dock settings screen, dock events SFX setting check box label --> + <string name="dock_sounds_enable_title">Dock insertion sound</string> + <!-- Dock settings screen, setting option summary text when check box is selected --> + <string name="dock_sounds_enable_summary_on">Play sound when inserting or removing phone from dock</string> + <!-- Sound settings screen, setting option summary text when check box is clear --> + <string name="dock_sounds_enable_summary_off">Don't play sound when inserting or removing phone from dock</string> <!-- Acounts & Sync settings screen setting option name to go into the screen for data sync settings--> <string name="sync_settings">Accounts & sync</string> diff --git a/res/xml/dock_settings.xml b/res/xml/dock_settings.xml index 43e9fa5..d3d6e43 100644 --- a/res/xml/dock_settings.xml +++ b/res/xml/dock_settings.xml @@ -26,4 +26,11 @@ android:summary="@string/dock_settings_summary" android:widgetLayout="@*android:layout/preference_dialog" /> -</PreferenceScreen>
\ No newline at end of file + <CheckBoxPreference + android:key="dock_sounds" + android:title="@string/dock_sounds_enable_title" + android:summaryOn="@string/dock_sounds_enable_summary_on" + android:summaryOff="@string/dock_sounds_enable_summary_off" + android:defaultValue="false" /> + +</PreferenceScreen> |