summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2014-12-04 18:16:57 +0000
committerAdnan Begovic <adnan@cyngn.com>2015-12-22 12:46:50 -0800
commit8353698cca67fa0f44f89bb77ffd39aa98ea9666 (patch)
tree8120883e5277f56114389d5a5d16adc46fa82726 /src
parent20c040dcd2b638de0b4b3e424401163ba8dd5432 (diff)
downloadpackages_apps_Settings-8353698cca67fa0f44f89bb77ffd39aa98ea9666.zip
packages_apps_Settings-8353698cca67fa0f44f89bb77ffd39aa98ea9666.tar.gz
packages_apps_Settings-8353698cca67fa0f44f89bb77ffd39aa98ea9666.tar.bz2
bluetooth: Show a refresh icon on the select devices screen
The refresh menu is hidden behind an overflow which is pointless. This patch shows the refresh icon if there is enough room. Change-Id: I35f19c42054b05388f7b8fcb82e0f3bd60e2d618
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/bluetooth/DevicePickerFragment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/DevicePickerFragment.java b/src/com/android/settings/bluetooth/DevicePickerFragment.java
index cbcc337..aa34224 100644
--- a/src/com/android/settings/bluetooth/DevicePickerFragment.java
+++ b/src/com/android/settings/bluetooth/DevicePickerFragment.java
@@ -71,7 +71,8 @@ public final class DevicePickerFragment extends DeviceListPreferenceFragment {
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
menu.add(Menu.NONE, MENU_ID_REFRESH, 0, R.string.bluetooth_search_for_devices)
.setEnabled(true)
- .setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
+ .setIcon(com.android.internal.R.drawable.ic_menu_refresh)
+ .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
super.onCreateOptionsMenu(menu, inflater);
}