Bluetooth: Only show devices when their names are resolved

am: 19ba320263

Change-Id: I23300ac9541f88b3aeb978be0771e93b85fe834f
This commit is contained in:
Jack He
2017-08-26 02:51:48 +00:00
committed by android-build-merger
6 changed files with 102 additions and 5 deletions

View File

@@ -140,6 +140,8 @@ public class BluetoothSettings extends DeviceListPreferenceFragment implements I
mBluetoothEnabler.resume(getActivity());
}
super.onStart();
// Always show paired devices regardless whether user-friendly name exists
mShowDevicesWithoutNames = true;
if (isUiRestricted()) {
getPreferenceScreen().removeAll();
if (!isUiRestrictedByOnlyAdmin()) {