mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix regression in first-categorization experience
The skip message now shows when there are no recently-used categories.
This commit is contained in:
parent
4922e615fd
commit
f9ca376bf3
1 changed files with 5 additions and 3 deletions
|
|
@ -121,9 +121,11 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
categoriesAdapter.setItems(items);
|
categoriesAdapter.setItems(items);
|
||||||
categoriesAdapter.notifyDataSetInvalidated();
|
categoriesAdapter.notifyDataSetInvalidated();
|
||||||
categoriesSearchInProgress.setVisibility(View.GONE);
|
categoriesSearchInProgress.setVisibility(View.GONE);
|
||||||
if(!TextUtils.isEmpty(filter) && categories.size() == 0) {
|
if (categories.size() == 0) {
|
||||||
categoriesNotFoundView.setText(getString(R.string.categories_not_found, filter));
|
if(!TextUtils.isEmpty(filter)) {
|
||||||
categoriesNotFoundView.setVisibility(View.VISIBLE);
|
categoriesNotFoundView.setText(getString(R.string.categories_not_found, filter));
|
||||||
|
categoriesNotFoundView.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// If we found recent cats, hide the skip message!
|
// If we found recent cats, hide the skip message!
|
||||||
categoriesSkip.setVisibility(View.GONE);
|
categoriesSkip.setVisibility(View.GONE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue