diff options
author | erfanian <erfanian@google.com> | 2017-10-31 11:24:48 -0700 |
---|---|---|
committer | zachh <zachh@google.com> | 2017-11-01 22:00:13 +0000 |
commit | f994261b7c1372778bf1f05b1d32427738e84a7a (patch) | |
tree | c074119b54f0669083c7e4898765ebd8efeee89e /java/com/android/dialer/assisteddialing/ui/res/xml | |
parent | 5c2d992ba8bb325eec435bef97684317fb800cc6 (diff) |
Add country code support to ad settings.
This allows users to override our automatically selected country code.
Bug: 63994464
Test: unit tests
PiperOrigin-RevId: 174064853
Change-Id: I12bd770300b041f3c7d5b8d5f5c0b75c4945492e
Diffstat (limited to 'java/com/android/dialer/assisteddialing/ui/res/xml')
-rw-r--r-- | java/com/android/dialer/assisteddialing/ui/res/xml/assisted_dialing_setting.xml | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/java/com/android/dialer/assisteddialing/ui/res/xml/assisted_dialing_setting.xml b/java/com/android/dialer/assisteddialing/ui/res/xml/assisted_dialing_setting.xml index 806edfcf9..c1706b2ed 100644 --- a/java/com/android/dialer/assisteddialing/ui/res/xml/assisted_dialing_setting.xml +++ b/java/com/android/dialer/assisteddialing/ui/res/xml/assisted_dialing_setting.xml @@ -17,10 +17,22 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - <SwitchPreference - android:defaultValue="true" - android:key="@string/assisted_dialing_setting_toggle_key" - android:title="@string/assisted_dialing_setting_title" - android:summary="@string/assisted_dialing_setting_summary" /> + <SwitchPreference + android:defaultValue="true" + android:key="@string/assisted_dialing_setting_toggle_key" + android:summary="@string/assisted_dialing_setting_summary" + android:title="@string/assisted_dialing_setting_title"/> + + <PreferenceCategory + android:title="@string/assisted_dialing_setting_cc_category_title"> + <ListPreference + android:dependency="@string/assisted_dialing_setting_toggle_key" + android:defaultValue="" + android:entries="@array/assisted_dialing_cc_entries" + android:entryValues="@array/assisted_dialing_cc_values" + android:key="@string/assisted_dialing_setting_cc_key" + android:summary="@string/assisted_dialing_setting_cc_default_summary" + android:title="@string/assisted_dialing_setting_cc_title"/> + </PreferenceCategory> </PreferenceScreen> |