Merge "Fix bluetooth device forgetting" into nyc-dev

This commit is contained in:
Jason Monk
2016-03-18 18:13:47 +00:00
committed by Android (Google) Code Review

View File

@@ -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