From 8353698cca67fa0f44f89bb77ffd39aa98ea9666 Mon Sep 17 00:00:00 2001 From: Diogo Ferreira Date: Thu, 4 Dec 2014 18:16:57 +0000 Subject: 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 --- src/com/android/settings/bluetooth/DevicePickerFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.1