summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-11 10:40:49 -0700
committerAndrew Lee <anwlee@google.com>2015-06-11 10:59:00 -0700
commit477ac8cdc4a5fb877f6d6a79e60142831f6deb8a (patch)
tree483a71a8d69f79d22eb5aac8b9e1707b04ecdc6a /res/xml
parent3109262f814309b0c93464006ba29d6a53b3145b (diff)
downloadplatform_packages_services_Telecomm-477ac8cdc4a5fb877f6d6a79e60142831f6deb8a.tar.gz
platform_packages_services_Telecomm-477ac8cdc4a5fb877f6d6a79e60142831f6deb8a.tar.bz2
platform_packages_services_Telecomm-477ac8cdc4a5fb877f6d6a79e60142831f6deb8a.zip
Change respond-via-sms strings on locale switch.
- No longer automatically store default responses in shared preferences when performing initial migration. Only store if previous values are present. - No longer persist the preferences for these responses. + Save preference values when changed in RespondViaSmsSettings. If the user has changed the value, their value will appear. Otherwise, the response will be the default for that locale. Bug: 19501543 Change-Id: Ib0f673ff0ac97b98a9934d8f0a81090ce8e590ea
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/respond_via_sms_settings.xml16
1 files changed, 12 insertions, 4 deletions
diff --git a/res/xml/respond_via_sms_settings.xml b/res/xml/respond_via_sms_settings.xml
index 7f79a5cc2..3c658ef3d 100644
--- a/res/xml/respond_via_sms_settings.xml
+++ b/res/xml/respond_via_sms_settings.xml
@@ -35,24 +35,32 @@
EditTextPreference here, to allow the preference "title" to wrap
onto multiple lines if the customized messages are long enough. -->
+ <!-- These preferences are not persisted, so that they will update
+ when the localization is changed. RespondViaSmsSettings handles
+ the logic of storing user-specified preference changes. -->
+
<com.android.server.telecom.MultiLineTitleEditTextPreference
android:key="canned_response_pref_1"
android:defaultValue="@string/respond_via_sms_canned_response_1"
- android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
+ android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
+ android:persistent="false" />
<com.android.server.telecom.MultiLineTitleEditTextPreference
android:key="canned_response_pref_2"
android:defaultValue="@string/respond_via_sms_canned_response_2"
- android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
+ android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
+ android:persistent="false" />
<com.android.server.telecom.MultiLineTitleEditTextPreference
android:key="canned_response_pref_3"
android:defaultValue="@string/respond_via_sms_canned_response_3"
- android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
+ android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
+ android:persistent="false" />
<com.android.server.telecom.MultiLineTitleEditTextPreference
android:key="canned_response_pref_4"
android:defaultValue="@string/respond_via_sms_canned_response_4"
- android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
+ android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
+ android:persistent="false" />
</PreferenceScreen>