mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Displays nearby categories on top instead of below recent ones
This commit is contained in:
parent
7273958b8e
commit
5fe43284ee
1 changed files with 3 additions and 3 deletions
|
|
@ -149,9 +149,7 @@ public class CategorizationFragment extends SherlockFragment{
|
|||
Category cat = Category.fromCursor(cursor);
|
||||
items.add(cat.getName());
|
||||
}
|
||||
|
||||
mergedItems.addAll(items);
|
||||
|
||||
|
||||
if (MwVolleyApi.gpsCatExists){
|
||||
Log.d("Cat", "GPS cats found in CategorizationFragment.java" + MwVolleyApi.getGpsCat().toString());
|
||||
ArrayList<String> gpsItems = new ArrayList<String>(MwVolleyApi.getGpsCat());
|
||||
|
|
@ -159,6 +157,8 @@ public class CategorizationFragment extends SherlockFragment{
|
|||
|
||||
mergedItems.addAll(gpsItems);
|
||||
}
|
||||
|
||||
mergedItems.addAll(items);
|
||||
}
|
||||
catch (RemoteException e) {
|
||||
// faaaail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue