summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaiyiz <kaiyiz@codeaurora.org>2014-03-21 10:07:03 +0800
committerRoman Birg <roman@cyngn.com>2014-09-02 11:53:43 -0700
commit072704341d41fe756b7f3a256f4165827e95a9c0 (patch)
treea3716eca6fccd0c151936ec740687a8961b3fef8
parentdc68755ba4d05e5860d000b417d096c6df948371 (diff)
downloadpackages_apps_Contacts-072704341d41fe756b7f3a256f4165827e95a9c0.tar.gz
packages_apps_Contacts-072704341d41fe756b7f3a256f4165827e95a9c0.tar.bz2
packages_apps_Contacts-072704341d41fe756b7f3a256f4165827e95a9c0.zip
Contact: Make email data in SIM inaccessible in airplane mode
When turn on the airplane mode, the selection condition for email data not changed,so we also can read the data in sim card Change the selection condition for email data to make the email data in Sim card not available CRs-fixed: 631805 Change-Id: Ia775b5b834be841e2fed77aa8b40de25fe3b764d
-rw-r--r--src/com/android/contacts/editor/MultiPickContactActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/contacts/editor/MultiPickContactActivity.java b/src/com/android/contacts/editor/MultiPickContactActivity.java
index cc1b66abc..0598576b6 100644
--- a/src/com/android/contacts/editor/MultiPickContactActivity.java
+++ b/src/com/android/contacts/editor/MultiPickContactActivity.java
@@ -939,6 +939,8 @@ public class MultiPickContactActivity extends ListActivity implements
private String getSelectionForQuery() {
switch (mMode) {
+ case MODE_DEFAULT_EMAIL:
+ case MODE_SEARCH_EMAIL:
case MODE_DEFAULT_PHONE:
case MODE_SEARCH_PHONE:
if (isShowSIM()) {
@@ -976,6 +978,8 @@ public class MultiPickContactActivity extends ListActivity implements
private String[] getSelectionArgsForQuery() {
switch (mMode) {
+ case MODE_DEFAULT_EMAIL:
+ case MODE_SEARCH_EMAIL:
case MODE_DEFAULT_PHONE:
case MODE_SEARCH_PHONE:
if (isShowSIM()) {