From 5e931977ba56a38db2e72785a4067b5a1fdb79c7 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 30 Aug 2013 11:37:53 -0700 Subject: Add All contacts option to overflow menu Bug: 10348659 Change-Id: I354fc56fdcb63d0b03f6d66cfb4d85b7700e3545 --- res/menu/dialtacts_options.xml | 5 ++++- res/menu/phone_favorite_options.xml | 28 --------------------------- res/values/strings.xml | 3 +++ src/com/android/dialer/DialtactsActivity.java | 6 +++++- 4 files changed, 12 insertions(+), 30 deletions(-) delete mode 100644 res/menu/phone_favorite_options.xml diff --git a/res/menu/dialtacts_options.xml b/res/menu/dialtacts_options.xml index b30697956..7e84818a1 100644 --- a/res/menu/dialtacts_options.xml +++ b/res/menu/dialtacts_options.xml @@ -21,8 +21,11 @@ android:id="@+id/menu_clear_frequents" android:title="@string/menu_clear_frequents" /> + - - - - - - - - diff --git a/res/values/strings.xml b/res/values/strings.xml index 3235d774e..65746bb04 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -338,6 +338,9 @@ New contact + + All contacts + Call details diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 4e5592a52..99855f4e0 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -347,7 +347,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O case R.id.menu_clear_frequents: ClearFrequentsDialog.show(getFragmentManager()); return true; - case R.id.add_contact: + case R.id.menu_add_contact: try { startActivity(new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI)); } catch (ActivityNotFoundException e) { @@ -360,6 +360,10 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O case R.id.menu_call_settings: final Intent settingsIntent = DialtactsActivity.getCallSettingsIntent(); startActivity(settingsIntent); + return true; + case R.id.menu_all_contacts: + onShowAllContacts(); + return true; } return false; } -- cgit v1.2.3