Fixed silly error

This commit is contained in:
misaochan 2016-01-02 18:39:00 +13:00
parent 9b4b2e8dd5
commit b13c162a2e

View file

@ -29,7 +29,7 @@ public class MwVolleyApi {
private static RequestQueue REQUEST_QUEUE;
private static final Gson GSON = new GsonBuilder().create();
private Context context;
private static String coordsLog;
private String coordsLog;
protected static Set<String> categorySet;
@ -38,8 +38,8 @@ public class MwVolleyApi {
public MwVolleyApi(Context context, String coords) {
this.context = context;
coordsLog = coords;
categorySet = new HashSet<String>();
coordsLog = coords;
}
@ -48,7 +48,7 @@ public class MwVolleyApi {
* Example URL: https://commons.wikimedia.org/w/api.php?action=query&prop=categories|coordinates|pageprops&format=json&clshow=!hidden&coprop=type|name|dim|country|region|globe&codistancefrompoint=38.11386944444445|13.356263888888888&
* generator=geosearch&redirects=&ggscoord=38.11386944444445|13.356263888888888&ggsradius=100&ggslimit=10&ggsnamespace=6&ggsprop=type|name|dim|country|region|globe&ggsprimary=all&formatversion=2
*/
private static String buildUrl(int ggsradius) {
private String buildUrl(int ggsradius) {
Uri.Builder builder = Uri.parse(MWURL).buildUpon();
@ -80,7 +80,7 @@ public class MwVolleyApi {
public void request() {
String apiUrl = buildUrl(INITRADIUS);
JsonRequest<QueryResponse> request = new QueryRequest(apiUrl, new LogResponseListener<QueryResponse>(), new LogResponseErrorListener());
JsonRequest request = new QueryRequest(apiUrl, new LogResponseListener<QueryResponse>(), new LogResponseErrorListener());
getQueue().add(request);
@ -122,6 +122,7 @@ public class MwVolleyApi {
}
}
}
}
private static class LogResponseErrorListener implements Response.ErrorListener {
private static final String TAG = LogResponseErrorListener.class.getName();