diff options
author | Danesh M <danesh@cyngn.com> | 2016-06-20 14:23:39 -0700 |
---|---|---|
committer | Danesh M <danesh@cyngn.com> | 2016-06-27 14:55:01 -0700 |
commit | 50af72b7caacb7ca4274efeec0a16e2dda84ff80 (patch) | |
tree | e1c30b9b88947d4f61f3fc0ce9ada8302a5ce51c /res | |
parent | 923b2a1a3422c2601b94c901a2576da20b3f4b92 (diff) | |
download | packages_apps_Settings-50af72b7caacb7ca4274efeec0a16e2dda84ff80.zip packages_apps_Settings-50af72b7caacb7ca4274efeec0a16e2dda84ff80.tar.gz packages_apps_Settings-50af72b7caacb7ca4274efeec0a16e2dda84ff80.tar.bz2 |
Settings : Add country code to blacklist entry dialog
Enforce country code when adding an entry. If the user has regex enabled,
* is added to the list as a choice. This avoids the confusion users are currently
facing where blocking only the number + regex doesn't work, since country code is expected.
Eg :
206* won't work
+1206* works
CYNGNOS-3049
BACON-4953
Change-Id: I9236898f17fcef425e561aaa10e56c5e8c2171a7
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/dialog_blacklist_edit_entry.xml | 14 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/res/layout/dialog_blacklist_edit_entry.xml b/res/layout/dialog_blacklist_edit_entry.xml index 30b7c24..ef66325 100644 --- a/res/layout/dialog_blacklist_edit_entry.xml +++ b/res/layout/dialog_blacklist_edit_entry.xml @@ -31,6 +31,20 @@ android:paddingStart="10dip" android:paddingEnd="10dip"> + <LinearLayout android:id="@+id/country_code_layout" + android:visibility="gone" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <TextView android:text="@string/blacklist_country_code_plus" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <Spinner android:id="@+id/number_country_code" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" /> + </LinearLayout> + <EditText android:id="@+id/number_edit" android:layout_width="0dip" android:layout_weight="1" diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index d4ec152..64bd522 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -1246,5 +1246,5 @@ <string name="lockscreen_wallpaper_title">Wallpaper</string> <string name="not_available_with_app">Not available with %1$s</string> - + <string name="blacklist_country_code_plus" translateable="false">+</string> </resources> |