Returns flat list of categories

This commit is contained in:
misaochan 2016-01-07 17:01:53 +13:00
parent d2f765daec
commit b99f847c70
2 changed files with 3 additions and 2 deletions

View file

@ -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");

View file

@ -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());