mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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);
|
super.onPostExecute(result);
|
||||||
|
|
||||||
results.addAll(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);
|
Log.d(TAG, "Prefix result: " + result);
|
||||||
categoriesAdapter.notifyDataSetChanged();
|
categoriesAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ public class MethodAUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
||||||
categories.add(catString);
|
categories.add(catString);
|
||||||
}
|
}
|
||||||
|
|
||||||
catFragment.categoriesCache.put(filter, categories);
|
//catFragment.categoriesCache.put(filter, categories);
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ public class PrefixUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
||||||
categories.add(categoryNode.getDocument().getTextContent());
|
categories.add(categoryNode.getDocument().getTextContent());
|
||||||
}
|
}
|
||||||
|
|
||||||
catFragment.categoriesCache.put(filter, categories);
|
//catFragment.categoriesCache.put(filter, categories);
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue