mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +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();
|
ArrayList displayCatList = new ArrayList();
|
||||||
Log.d("Cache", "Points found in quadtree: " + pointsFound);
|
Log.d("Cache", "Points found in quadtree: " + pointsFound);
|
||||||
|
|
||||||
ArrayList<String> flatCatList = null;
|
ArrayList<String> flatCatList = new ArrayList<String>();
|
||||||
//TODO: Make this return a proper flat array
|
|
||||||
if (pointsFound.length != 0) {
|
if (pointsFound.length != 0) {
|
||||||
|
|
||||||
Log.d("Cache", "Entering for loop");
|
Log.d("Cache", "Entering for loop");
|
||||||
|
|
|
||||||
|
|
@ -211,6 +211,7 @@ public class ShareActivity
|
||||||
List displayCatList = cacheObj.cacheData.findCategory();
|
List displayCatList = cacheObj.cacheData.findCategory();
|
||||||
|
|
||||||
//if no categories found in cache, call MW API to match image coords with nearby Commons categories
|
//if no categories found in cache, call MW API to match image coords with nearby Commons categories
|
||||||
|
|
||||||
if (displayCatList.size() == 0) {
|
if (displayCatList.size() == 0) {
|
||||||
apiCall.request(decimalCoords);
|
apiCall.request(decimalCoords);
|
||||||
Log.d("Cache", "displayCatList size 0, calling MWAPI" + displayCatList.toString());
|
Log.d("Cache", "displayCatList size 0, calling MWAPI" + displayCatList.toString());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue