mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Fix repeat categories bug
This commit is contained in:
parent
d26cb3d356
commit
8d8002fcf7
1 changed files with 5 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
|
|
||||||
protected ArrayList<String> recentCatQuery() {
|
protected ArrayList<String> recentCatQuery() {
|
||||||
ArrayList<String> items = new ArrayList<String>();
|
ArrayList<String> items = new ArrayList<String>();
|
||||||
ArrayList<String> mergedItems= new ArrayList<String>();
|
LinkedHashSet<String> mergedItems = new LinkedHashSet<String>();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Cursor cursor = client.query(
|
Cursor cursor = client.query(
|
||||||
|
|
@ -127,8 +127,10 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
catch (RemoteException e) {
|
catch (RemoteException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
//Log.d(TAG, "Merged items: " + mergedItems.toString());
|
|
||||||
return mergedItems;
|
//Needs to be an ArrayList and not a List unless we want to modify a big portion of preexisting code
|
||||||
|
ArrayList<String> mergedItemsList = new ArrayList<String>(mergedItems);
|
||||||
|
return mergedItemsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue