mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Returns flat list of categories
This commit is contained in:
parent
d2f765daec
commit
b99f847c70
2 changed files with 3 additions and 2 deletions
|
|
@ -46,8 +46,8 @@ public class CacheController {
|
|||
ArrayList displayCatList = new ArrayList();
|
||||
Log.d("Cache", "Points found in quadtree: " + pointsFound);
|
||||
|
||||
ArrayList<String> flatCatList = null;
|
||||
//TODO: Make this return a proper flat array
|
||||
ArrayList<String> flatCatList = new ArrayList<String>();
|
||||
|
||||
if (pointsFound.length != 0) {
|
||||
|
||||
Log.d("Cache", "Entering for loop");
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ public class ShareActivity
|
|||
List displayCatList = cacheObj.cacheData.findCategory();
|
||||
|
||||
//if no categories found in cache, call MW API to match image coords with nearby Commons categories
|
||||
|
||||
if (displayCatList.size() == 0) {
|
||||
apiCall.request(decimalCoords);
|
||||
Log.d("Cache", "displayCatList size 0, calling MWAPI" + displayCatList.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue