mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Trying with 1000 radius
This commit is contained in:
parent
b99f847c70
commit
207ee2bfac
2 changed files with 5 additions and 3 deletions
|
|
@ -50,7 +50,8 @@ public class MwVolleyApi {
|
|||
}
|
||||
|
||||
public static void setGpsCat(List cachedList) {
|
||||
categoryList = new ArrayList<String>(cachedList);
|
||||
categoryList = new ArrayList<String>();
|
||||
categoryList.addAll(cachedList);
|
||||
Log.d("Cache", "Setting GPS cats from cache: " + categoryList.toString());
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +86,7 @@ public class MwVolleyApi {
|
|||
.appendQueryParameter("codistancefrompoint", coords)
|
||||
.appendQueryParameter("generator", "geosearch")
|
||||
.appendQueryParameter("ggscoord", coords)
|
||||
.appendQueryParameter("ggsradius", "100")
|
||||
.appendQueryParameter("ggsradius", "1000")
|
||||
.appendQueryParameter("ggslimit", "10")
|
||||
.appendQueryParameter("ggsnamespace", "6")
|
||||
.appendQueryParameter("ggsprop", "type|name|dim|country|region|globe")
|
||||
|
|
|
|||
|
|
@ -217,8 +217,9 @@ public class ShareActivity
|
|||
Log.d("Cache", "displayCatList size 0, calling MWAPI" + displayCatList.toString());
|
||||
} else {
|
||||
//TODO: Set categoryList in MwVolleyApi. Not filling up right. Maybe do global singleton for MwVolleyApi? Can't do that, we want new cats for each upload, so new instance of mwapi
|
||||
MwVolleyApi.setGpsCat(displayCatList);
|
||||
|
||||
Log.d("Cache", "Cache found, setting categoryList in MwVolleyApi to " + displayCatList.toString());
|
||||
MwVolleyApi.setGpsCat(displayCatList);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue