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