mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Minor changes
This commit is contained in:
parent
8b062147bc
commit
9a1d10fe8f
2 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue