mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Adding documentation
This commit is contained in:
parent
0c15a3515b
commit
c8773101d5
2 changed files with 6 additions and 3 deletions
|
|
@ -57,14 +57,14 @@ public class CacheController {
|
|||
Log.d("Cache", "Entering for loop");
|
||||
int index = 0;
|
||||
for (Point point : pointsFound) {
|
||||
Log.d("Cache", "Point: " + point.toString());
|
||||
Log.d("Cache", "Nearby point: " + point.toString());
|
||||
Object cat = point.getValue();
|
||||
Log.d("Cache", "Cat: " + cat);
|
||||
Log.d("Cache", "Nearby cat: " + cat);
|
||||
catList.add(index, cat);
|
||||
index++;
|
||||
}
|
||||
|
||||
Log.d("Cache", "Categories found: " + catList.toString());
|
||||
Log.d("Cache", "Categories found in cache: " + catList.toString());
|
||||
} else {
|
||||
Log.d("Cache", "No categories found in cache");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -204,7 +204,10 @@ public class ShareActivity
|
|||
|
||||
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
|
||||
|
||||
//asynchronous calls to MediaWiki Commons API to match image coords with nearby Commons categories
|
||||
MwVolleyApi apiCall = new MwVolleyApi(this);
|
||||
apiCall.request(decimalCoords);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue