Fix bluetooth device forgetting
Bug: 27476922 Change-Id: I8c5b7076a04185371311fb4ff1c1ba0df0df19dc
This commit is contained in:
@@ -181,6 +181,7 @@ public abstract class DeviceListPreferenceFragment extends
|
|||||||
|
|
||||||
if (preference == null) {
|
if (preference == null) {
|
||||||
preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice);
|
preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice);
|
||||||
|
preference.setKey(key);
|
||||||
mDeviceListGroup.addPreference(preference);
|
mDeviceListGroup.addPreference(preference);
|
||||||
} else {
|
} else {
|
||||||
// Tell the preference it is being re-used in case there is new info in the
|
// Tell the preference it is being re-used in case there is new info in the
|
||||||
|
Reference in New Issue
Block a user