diff options
-rw-r--r-- | res/values/cm_strings.xml | 39 | ||||
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | res/xml/preferences.xml | 4 |
3 files changed, 41 insertions, 4 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml new file mode 100644 index 00000000..de08f613 --- /dev/null +++ b/res/values/cm_strings.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Entries listed in the ListPreference for allowed alert durations. [CHAR LIMIT=30] --> + <string-array name="cm_alert_sound_duration_entries"> + <item>2 seconds</item> + <item>4 seconds</item> + <item>6 seconds</item> + <item>8 seconds</item> + <item>10 seconds</item> + <item>Until dismissed</item> + </string-array> + + <!-- Do not translate. Values that are retrieved from the ListPreference. + These must match the alert_sound_duration_entries above. --> + <string-array name="cm_alert_sound_duration_values" translatable="false"> + <item>2</item> + <item>4</item> + <item>6</item> + <item>8</item> + <item>10</item> + <item>0</item> + </string-array> + +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 140bd8c8..57e2d9a0 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -239,7 +239,6 @@ <item>6 seconds</item> <item>8 seconds</item> <item>10 seconds</item> - <item>Until dismissed</item> </string-array> <!-- Do not translate. Values that are retrieved from the ListPreference. @@ -250,7 +249,6 @@ <item>6</item> <item>8</item> <item>10</item> - <item>0</item> </string-array> <!-- Entries in the ListPreference for alert reminder intervals. [CHAR LIMIT=30] --> diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 8d3b1fa2..3eb422e4 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -47,8 +47,8 @@ <ListPreference android:key="alert_sound_duration" android:title="@string/alert_sound_duration_title" - android:entries="@array/alert_sound_duration_entries" - android:entryValues="@array/alert_sound_duration_values" + android:entries="@array/cm_alert_sound_duration_entries" + android:entryValues="@array/cm_alert_sound_duration_values" android:defaultValue="4" android:dialogTitle="@string/alert_sound_duration_title" /> |