summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-06-10 16:27:37 -0700
committerNancy Chen <nancychen@google.com>2014-06-11 16:44:17 -0700
commit9b46dd9bb12ddedb42c1aa5e5b6523601aa2635e (patch)
tree92c26be809fd78b71136d2764332d7220d37b72a /res
parentd365a18bff25442df7ae030625ed6c1fc2480f79 (diff)
downloadandroid_packages_apps_ContactsCommon-9b46dd9bb12ddedb42c1aa5e5b6523601aa2635e.tar.gz
android_packages_apps_ContactsCommon-9b46dd9bb12ddedb42c1aa5e5b6523601aa2635e.tar.bz2
android_packages_apps_ContactsCommon-9b46dd9bb12ddedb42c1aa5e5b6523601aa2635e.zip
Add dialog for SIM card select option on dialer menus
Create new dialog that will be brought up when "Select SIM card" option is chosen in the main dialer activity menu or the dialpad fragment menu Bug: 15473965 Change-Id: Iff4943cebe98af0f7627795116802ba1a536c548
Diffstat (limited to 'res')
-rw-r--r--res/layout/default_sim_checkbox.xml23
-rw-r--r--res/values/strings.xml6
2 files changed, 29 insertions, 0 deletions
diff --git a/res/layout/default_sim_checkbox.xml b/res/layout/default_sim_checkbox.xml
new file mode 100644
index 00000000..a0c4a9a0
--- /dev/null
+++ b/res/layout/default_sim_checkbox.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/default_sim_checkbox_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dip"
+ android:orientation="vertical">
+ <!-- Dummy to enable right-justification of checkbox -->
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+ <CheckBox
+ android:id="@+id/default_sim_checkbox_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingStart="20dip"
+ android:layout_marginLeft="20dip"
+ android:layout_marginBottom="20dip"
+ android:gravity="center"
+ android:textSize="14sp"
+ android:textAlignment="viewStart"
+ android:text="@string/set_default_sim"/>
+</LinearLayout>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 095157f9..afbb4d65 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -123,6 +123,9 @@
scratch.
</string>
+ <!-- Label for the check box to toggle default sim card setting [CHAR LIMIT=35]-->
+ <string name="set_default_sim">Always use this SIM for calls</string>
+
<!-- Title of the "Clearing frequently contacted" progress-dialog [CHAR LIMIT=35] -->
<string name="clearFrequentsProgress_title">Clearing frequently contacted\u2026</string>
@@ -699,6 +702,9 @@ a ren't members of any other group. [CHAR LIMIT=25] -->
<!-- The menu item to clear frequents [CHAR LIMIT=30] -->
<string name="menu_clear_frequents">Clear frequents</string>
+ <!-- Menu item to select SIM card -->
+ <string name="menu_select_sim">Select SIM card</string>
+
<!-- The menu item to open the list of accounts -->
<string name="menu_accounts">Accounts</string>