Merge "Create new WifiEntryPreference if WifiEntry object changes"
This commit is contained in:
committed by
Android (Google) Code Review
commit
bc92d48d3f
@@ -763,8 +763,13 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
LongPressWifiEntryPreference pref =
|
||||
(LongPressWifiEntryPreference) getCachedPreference(key);
|
||||
if (pref != null) {
|
||||
pref.setOrder(index++);
|
||||
continue;
|
||||
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