Minor changes

This commit is contained in:
misaochan 2015-12-23 16:01:12 +13:00
parent 8b062147bc
commit 9a1d10fe8f
2 changed files with 4 additions and 4 deletions

View file

@ -20,13 +20,13 @@ import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Collection;
public class APICalls {
public class MwVolleyApi {
private static RequestQueue REQUEST_QUEUE;
private static final Gson GSON = new Gson();
private Context context;
public APICalls(Context context) {
public MwVolleyApi(Context context) {
this.context = context;
}
public void request(String apiUrl) {

View file

@ -190,7 +190,7 @@ public class ShareActivity
//asynchronous calls to MediaWiki Commons API to match image coords with nearby Commons categories
APICalls apiCall = new APICalls(this);
MwVolleyApi apiCall = new MwVolleyApi(this);
apiCall.request(apiUrl);
@ -247,7 +247,7 @@ public class ShareActivity
.appendQueryParameter("ggsprimary", "all")
.appendQueryParameter("formatversion", "2");
return builder.build().toString();
return builder.toString();
}
}