Do an assertion here to get rid of a warning - this can not be null
This commit is contained in:
parent
47f53cafa2
commit
7f091c62a8
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ public class PastLocationsStore {
|
|||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
final Set<String> pastLocations = prefs.getStringSet(KEY_PAST_LOCATIONS, new HashSet<String>());
|
||||
|
||||
assert pastLocations != null;
|
||||
if (pastLocations.size() >= MAX_ELEMENTS) {
|
||||
deleteOneElementFromSet(pastLocations);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue