mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
category: fix category search in explore
This is a change that replicates the fix done via PR #6093. This is based over v5.1.1 as the fix seems necessary for the category search to work properly on the explore screen.
This commit is contained in:
parent
391408ed17
commit
a796a8adcf
2 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ class CategoryClient
|
||||||
}.map {
|
}.map {
|
||||||
it
|
it
|
||||||
.filter { page ->
|
.filter { page ->
|
||||||
!page.categoryInfo().isHidden
|
page.categoryInfo() == null || !page.categoryInfo().isHidden
|
||||||
}.map {
|
}.map {
|
||||||
CategoryItem(
|
CategoryItem(
|
||||||
it.title().replace(CATEGORY_PREFIX, ""),
|
it.title().replace(CATEGORY_PREFIX, ""),
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ public class MwQueryPage extends BaseModel {
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull public CategoryInfo categoryInfo() {
|
public CategoryInfo categoryInfo() {
|
||||||
return categoryinfo;
|
return categoryinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue