From 467de3dc2be8fa6c815782852f47a752eb77a6dc Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 17 Mar 2015 15:47:24 -0700 Subject: Make menu options protected instead of private. Thsi allows Google Dialer to add a feedback option and handle its behavior accordingly. Bug: 19254693 Change-Id: I64ab34049406d10f53504af8d5eda9ac29758ef8 --- res/menu/dialtacts_options.xml | 4 ++-- src/com/android/dialer/DialtactsActivity.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/res/menu/dialtacts_options.xml b/res/menu/dialtacts_options.xml index cc5e3868e..8a9e25f7f 100644 --- a/res/menu/dialtacts_options.xml +++ b/res/menu/dialtacts_options.xml @@ -30,6 +30,6 @@ android:title="@string/menu_newContact"/> + android:title="@string/dialer_settings_label" /> + diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 61aeed5b0..787b6fae4 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -238,7 +238,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O */ private String mVoiceSearchQuery; - private class OptionsPopupMenu extends PopupMenu { + protected class OptionsPopupMenu extends PopupMenu { public OptionsPopupMenu(Context context, View anchor) { super(context, anchor, Gravity.END); } @@ -808,7 +808,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } } - private OptionsPopupMenu buildOptionsMenu(View invoker) { + protected OptionsPopupMenu buildOptionsMenu(View invoker) { final OptionsPopupMenu popupMenu = new OptionsPopupMenu(this, invoker); popupMenu.inflate(R.menu.dialtacts_options); final Menu menu = popupMenu.getMenu(); -- cgit v1.2.3