This commit is contained in:
Daniele Verducci (Slimpenguin)
2023-02-15 09:04:33 +01:00
parent a13e601eea
commit cf7d38d872
4 changed files with 24 additions and 5 deletions
@@ -162,7 +162,9 @@ public class GeofavoriteRepository {
private void updateCategories(List<Geofavorite> geofavs) {
HashSet<String> categories = new HashSet<>();
for (Geofavorite g : geofavs) {
categories.add(g.getCategory());
String cat = g.getCategory();
if (cat != null)
categories.add(cat);
}
mCategories.postValue(categories);
}