Merge "Create new WifiEntryPreference if WifiEntry object changes" into rvc-dev am: 6d93851386
Change-Id: I98da412048dc0dbe100826809173763c70d7a15e
This commit is contained in:
@@ -763,8 +763,13 @@ public class WifiSettings2 extends RestrictedSettingsFragment
|
|||||||
LongPressWifiEntryPreference pref =
|
LongPressWifiEntryPreference pref =
|
||||||
(LongPressWifiEntryPreference) getCachedPreference(key);
|
(LongPressWifiEntryPreference) getCachedPreference(key);
|
||||||
if (pref != null) {
|
if (pref != null) {
|
||||||
pref.setOrder(index++);
|
if (pref.getWifiEntry() == wifiEntry) {
|
||||||
continue;
|
pref.setOrder(index++);
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
// Create a new preference if the underlying WifiEntry object has changed
|
||||||
|
removePreference(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pref = createLongPressWifiEntryPreference(wifiEntry);
|
pref = createLongPressWifiEntryPreference(wifiEntry);
|
||||||
|
Reference in New Issue
Block a user