mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Simplify catList is empty logic
This commit is contained in:
parent
9baafdf82b
commit
5d4768e1ee
1 changed files with 4 additions and 4 deletions
|
|
@ -206,11 +206,11 @@ public class ShareActivity
|
|||
app.cacheData.setQtPoint(decLongitude, decLatitude);
|
||||
|
||||
MwVolleyApi apiCall = new MwVolleyApi(this);
|
||||
|
||||
List displayCatList = app.cacheData.findCategory();
|
||||
boolean catListEmpty = displayCatList.isEmpty();
|
||||
|
||||
//if no categories found in cache, call MW API to match image coords with nearby Commons categories
|
||||
if (displayCatList.size() == 0) {
|
||||
if (catListEmpty) {
|
||||
cacheFound = false;
|
||||
apiCall.request(decimalCoords);
|
||||
Log.d(TAG, "displayCatList size 0, calling MWAPI" + displayCatList.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue