fix delete location bug
This commit is contained in:
@@ -24,6 +24,7 @@ class UserPreferences {
|
|||||||
preferences!.remove("$name-lat");
|
preferences!.remove("$name-lat");
|
||||||
preferences!.remove("$name-lon");
|
preferences!.remove("$name-lon");
|
||||||
_savedLocations.remove(name);
|
_savedLocations.remove(name);
|
||||||
|
preferences!.setStringList('savedLocations', _savedLocations);
|
||||||
preferences!.remove(name);
|
preferences!.remove(name);
|
||||||
return getSavedLocations();
|
return getSavedLocations();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user