mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Added API url as string constant
This commit is contained in:
parent
c385b54d44
commit
b3de195176
1 changed files with 2 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ public class MwVolleyApi {
|
|||
|
||||
//To check later on whether any nearby categories were found
|
||||
public static boolean gpsCatExists;
|
||||
public static final String MWURL = "https://commons.wikimedia.org/";
|
||||
|
||||
public MwVolleyApi(Context context) {
|
||||
this.context = context;
|
||||
|
|
@ -66,7 +67,7 @@ public class MwVolleyApi {
|
|||
*/
|
||||
private String buildUrl (String coords){
|
||||
|
||||
Uri.Builder builder = Uri.parse("https://commons.wikimedia.org/").buildUpon();
|
||||
Uri.Builder builder = Uri.parse(MWURL).buildUpon();
|
||||
|
||||
builder.appendPath("w")
|
||||
.appendPath("api.php")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue