mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Try to remove race condition (failed)
This commit is contained in:
parent
74e999015b
commit
8e80a71743
3 changed files with 7 additions and 2 deletions
|
|
@ -354,6 +354,11 @@ public class CategorizationFragment extends SherlockFragment{
|
|||
super.onPostExecute(result);
|
||||
|
||||
results.addAll(result);
|
||||
|
||||
String filter = categoriesFilter.getText().toString();
|
||||
ArrayList<String> resultsList = new ArrayList<String>(results);
|
||||
categoriesCache.put(filter, resultsList);
|
||||
|
||||
Log.d(TAG, "Prefix result: " + result);
|
||||
categoriesAdapter.notifyDataSetChanged();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public class MethodAUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
|||
categories.add(catString);
|
||||
}
|
||||
|
||||
catFragment.categoriesCache.put(filter, categories);
|
||||
//catFragment.categoriesCache.put(filter, categories);
|
||||
return categories;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public class PrefixUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
|||
categories.add(categoryNode.getDocument().getTextContent());
|
||||
}
|
||||
|
||||
catFragment.categoriesCache.put(filter, categories);
|
||||
//catFragment.categoriesCache.put(filter, categories);
|
||||
return categories;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue