Merge "Always show items in options menu for Wi-Fi Direct settings" am: 1e160cc8bf
am: 0173130d73

Change-Id: I7e70b3f2140301673b45beb3fb7ad7ed2d848a1d
diff --git a/src/com/android/settings/wifi/p2p/WifiP2pSettings.java b/src/com/android/settings/wifi/p2p/WifiP2pSettings.java
index 7ef10e5..f26564d 100644
--- a/src/com/android/settings/wifi/p2p/WifiP2pSettings.java
+++ b/src/com/android/settings/wifi/p2p/WifiP2pSettings.java
@@ -354,11 +354,9 @@
         int textId = mWifiP2pSearching ? R.string.wifi_p2p_menu_searching :
                 R.string.wifi_p2p_menu_search;
         menu.add(Menu.NONE, MENU_ID_SEARCH, 0, textId)
-            .setEnabled(mWifiP2pEnabled)
-            .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
+            .setEnabled(mWifiP2pEnabled);
         menu.add(Menu.NONE, MENU_ID_RENAME, 0, R.string.wifi_p2p_menu_rename)
-            .setEnabled(mWifiP2pEnabled)
-            .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
+            .setEnabled(mWifiP2pEnabled);
         super.onCreateOptionsMenu(menu, inflater);
     }