From 4d331326b04e05e66d706b427c6650d1058f93cb Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Mon, 25 Feb 2019 16:32:12 +0400 Subject: [PATCH] Added check for empty list when deleting item in FavoritesActivity --- .../java/ru/volgorobot/vrcatalog/view/FavoritesActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/view/FavoritesActivity.java b/app/src/main/java/ru/volgorobot/vrcatalog/view/FavoritesActivity.java index 290b069..a622f29 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/view/FavoritesActivity.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/view/FavoritesActivity.java @@ -87,6 +87,7 @@ public class FavoritesActivity extends AppCompatActivity implements MainContract FavoritesListModel model = (FavoritesListModel) listView.getItemAtPosition(info.position); db.removeItem(model.getID()); updateListView(); + checkForEmptyContent(); } } return true;