Added check for empty list when deleting item in FavoritesActivity

This commit is contained in:
ChronosX88 2019-02-25 16:32:12 +04:00
parent 9d7e85a80c
commit 4d331326b0
No known key found for this signature in database
GPG Key ID: 8F92E090A87804AA

View File

@ -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;