mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Test filterYears() with gps/recent/title cats
This commit is contained in:
parent
bff5ce96b0
commit
37bd557a06
1 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,9 @@ public class PrefixUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
||||||
protected ArrayList<String> doInBackground(Void... voids) {
|
protected ArrayList<String> doInBackground(Void... voids) {
|
||||||
//If user hasn't typed anything in yet, get GPS and recent items
|
//If user hasn't typed anything in yet, get GPS and recent items
|
||||||
if(TextUtils.isEmpty(filter)) {
|
if(TextUtils.isEmpty(filter)) {
|
||||||
return catFragment.mergeItems();
|
ArrayList<String> mergedItems = new ArrayList<String>(catFragment.mergeItems());
|
||||||
|
ArrayList<String> filteredItems = new ArrayList<String>(filterYears(mergedItems));
|
||||||
|
return filteredItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if user types in something that is in cache, return cached category
|
//if user types in something that is in cache, return cached category
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue