Commit 95654c4f authored by Jason Monk's avatar Jason Monk Committed by The Android Automerger

Fix missing bluetooth settings items

In the off/turning on state all items were being removed, but never
re-added to the preference screen.

Bug: 27347029
Change-Id: I8f47ee79f428fc8555a0dc6574244c81aa85c6c8
parent 2c1cbd3e
......@@ -314,6 +314,11 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
messageId = R.string.bluetooth_empty_list_user_restricted;
break;
}
if (getPreferenceScreen().getPreferenceCount() == 0) {
getPreferenceScreen().addPreference(mPairedDevicesCategory);
getPreferenceScreen().addPreference(mAvailableDevicesCategory);
getPreferenceScreen().addPreference(mMyDevicePreference);
}
// Paired devices category
addDeviceCategory(mPairedDevicesCategory,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment