Adding documentation

This commit is contained in:
misaochan 2016-01-06 17:30:18 +13:00
parent 0c15a3515b
commit c8773101d5
2 changed files with 6 additions and 3 deletions

View file

@ -57,14 +57,14 @@ public class CacheController {
Log.d("Cache", "Entering for loop"); Log.d("Cache", "Entering for loop");
int index = 0; int index = 0;
for (Point point : pointsFound) { for (Point point : pointsFound) {
Log.d("Cache", "Point: " + point.toString()); Log.d("Cache", "Nearby point: " + point.toString());
Object cat = point.getValue(); Object cat = point.getValue();
Log.d("Cache", "Cat: " + cat); Log.d("Cache", "Nearby cat: " + cat);
catList.add(index, cat); catList.add(index, cat);
index++; index++;
} }
Log.d("Cache", "Categories found: " + catList.toString()); Log.d("Cache", "Categories found in cache: " + catList.toString());
} else { } else {
Log.d("Cache", "No categories found in cache"); Log.d("Cache", "No categories found in cache");
} }

View file

@ -204,7 +204,10 @@ public class ShareActivity
cacheObj.cacheData.findCategory(); cacheObj.cacheData.findCategory();
//TODO: If categories found from cache in that area, skip API call and display those categories instead
//TODO: If no categories found from cache in that area, call MW API //TODO: If no categories found from cache in that area, call MW API
//asynchronous calls to MediaWiki Commons API to match image coords with nearby Commons categories //asynchronous calls to MediaWiki Commons API to match image coords with nearby Commons categories
MwVolleyApi apiCall = new MwVolleyApi(this); MwVolleyApi apiCall = new MwVolleyApi(this);
apiCall.request(decimalCoords); apiCall.request(decimalCoords);