diff options
author | Yorke Lee <yorkelee@google.com> | 2013-07-30 16:11:09 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-07-30 16:11:09 -0700 |
commit | f00e1cfc307d37ac2cb693c701a3dcc2790b84c2 (patch) | |
tree | b5d88b147fef2972b9b0e24eef58855f0165924f | |
parent | 114ac7c63c9cc53a2c5159f5f34fb9390d28cc85 (diff) |
Don't hide overflow menu on devices with menu hard key
We can reenable the menu hard key on devices which have one when
we figure out menu interactions between DialtactsActivity and its
fragments.
Also removed useless Show All Contacts menu option.
Change-Id: I446b2157072c137c7b8624ae97455f793b188cdb
-rw-r--r-- | res/menu/dialtacts_options_new.xml | 3 | ||||
-rw-r--r-- | src/com/android/dialer/NewDialtactsActivity.java | 8 |
2 files changed, 1 insertions, 10 deletions
diff --git a/res/menu/dialtacts_options_new.xml b/res/menu/dialtacts_options_new.xml index 92708fec0..b30697956 100644 --- a/res/menu/dialtacts_options_new.xml +++ b/res/menu/dialtacts_options_new.xml @@ -24,9 +24,6 @@ android:id="@+id/add_contact" android:title="@string/menu_newContact"/> <item - android:id="@+id/menu_show_hide_all_contacts" - android:title="@string/show_all_contacts" /> - <item android:id="@+id/menu_call_settings" android:title="@string/call_settings" android:orderInCategory="2" /> diff --git a/src/com/android/dialer/NewDialtactsActivity.java b/src/com/android/dialer/NewDialtactsActivity.java index 6d2bb3fdb..36e4a546a 100644 --- a/src/com/android/dialer/NewDialtactsActivity.java +++ b/src/com/android/dialer/NewDialtactsActivity.java @@ -460,13 +460,7 @@ public class NewDialtactsActivity extends TransactionSafeActivity implements Vie public void setupFakeActionBarItemsForFavoritesFragment() { mMenuButton = findViewById(R.id.overflow_menu); if (mMenuButton != null) { - // mMenuButton.setMinimumWidth(fakeMenuItemWidth); - if (ViewConfiguration.get(this).hasPermanentMenuKey()) { - // This is required for dialpad button's layout, so must not use GONE here. - mMenuButton.setVisibility(View.INVISIBLE); - } else { - mMenuButton.setOnClickListener(this); - } + mMenuButton.setOnClickListener(this); } mCallHistoryButton = findViewById(R.id.call_history_button); |