Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df805591 authored by huiwan's avatar huiwan Committed by Michael Bestas
Browse files

Revert "Settings: Lost cached BT devices in found devices list"

This reverts commit 4bf5b15e47e8090cef0698abf310d8a4f8f33246.

Change-Id: Ifd38bb12583f9a49c102084a62c889415a95fec8
CRs-Fixed: 1111656
parent 9663c317
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -182,6 +182,7 @@ public abstract class DeviceListPreferenceFragment extends
        if (preference == null) {
            preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice);
            preference.setKey(key);
            mDeviceListGroup.addPreference(preference);
        } else {
            // Tell the preference it is being re-used in case there is new info in the
            // cached device.
@@ -189,7 +190,7 @@ public abstract class DeviceListPreferenceFragment extends
        }

        initDevicePreference(preference);
        mDeviceListGroup.addPreference(preference);

        mDevicePreferenceMap.put(cachedDevice, preference);
    }