summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorDanesh M <danesh@cyngn.com>2016-06-20 14:23:39 -0700
committerDanesh M <danesh@cyngn.com>2016-06-27 14:55:01 -0700
commit50af72b7caacb7ca4274efeec0a16e2dda84ff80 (patch)
treee1c30b9b88947d4f61f3fc0ce9ada8302a5ce51c /res/layout
parent923b2a1a3422c2601b94c901a2576da20b3f4b92 (diff)
downloadpackages_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/layout')
-rw-r--r--res/layout/dialog_blacklist_edit_entry.xml14
1 files changed, 14 insertions, 0 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"