if categories.isEmpty()

This commit is contained in:
misaochan 2016-01-26 16:46:02 +13:00
parent f38b32347b
commit 5e500fa653

View file

@ -151,7 +151,7 @@ public class CategorizationFragment extends SherlockFragment{
categoriesAdapter.notifyDataSetInvalidated(); categoriesAdapter.notifyDataSetInvalidated();
categoriesSearchInProgress.setVisibility(View.GONE); categoriesSearchInProgress.setVisibility(View.GONE);
if (categories.size() == 0) { if (categories.isEmpty()) {
if(TextUtils.isEmpty(filter)) { if(TextUtils.isEmpty(filter)) {
// If we found no recent cats, show the skip message! // If we found no recent cats, show the skip message!
categoriesSkip.setVisibility(View.VISIBLE); categoriesSkip.setVisibility(View.VISIBLE);