mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +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);
|
Category cat = Category.fromCursor(cursor);
|
||||||
items.add(cat.getName());
|
items.add(cat.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
mergedItems.addAll(items);
|
|
||||||
|
|
||||||
if (MwVolleyApi.gpsCatExists){
|
if (MwVolleyApi.gpsCatExists){
|
||||||
Log.d("Cat", "GPS cats found in CategorizationFragment.java" + MwVolleyApi.getGpsCat().toString());
|
Log.d("Cat", "GPS cats found in CategorizationFragment.java" + MwVolleyApi.getGpsCat().toString());
|
||||||
ArrayList<String> gpsItems = new ArrayList<String>(MwVolleyApi.getGpsCat());
|
ArrayList<String> gpsItems = new ArrayList<String>(MwVolleyApi.getGpsCat());
|
||||||
|
|
@ -159,6 +157,8 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
|
|
||||||
mergedItems.addAll(gpsItems);
|
mergedItems.addAll(gpsItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mergedItems.addAll(items);
|
||||||
}
|
}
|
||||||
catch (RemoteException e) {
|
catch (RemoteException e) {
|
||||||
// faaaail
|
// faaaail
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue