[android] #5068 - Switching to Mapbox Locale Constant
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
package com.mapbox.mapboxsdk.constants;
|
||||
|
||||
import android.support.annotation.IntRange;
|
||||
import android.support.annotation.StringDef;
|
||||
|
||||
import com.mapbox.mapboxsdk.maps.MapView;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -59,7 +55,7 @@ public class Style {
|
||||
* @return uri to load style from
|
||||
*/
|
||||
public static String getMapboxStreetsUrl(int version) {
|
||||
return String.format(Locale.US, MAPBOX_STREETS_BASE, version);
|
||||
return String.format(MapboxConstants.MAPBOX_LOCALE, MAPBOX_STREETS_BASE, version);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -77,7 +73,7 @@ public class Style {
|
||||
* @return uri to load style from
|
||||
*/
|
||||
public static String getOutdoorsStyleUrl(int version) {
|
||||
return String.format(Locale.US, OUTDOORS_BASE, version);
|
||||
return String.format(MapboxConstants.MAPBOX_LOCALE, OUTDOORS_BASE, version);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,7 +91,7 @@ public class Style {
|
||||
* @return uri to load style from
|
||||
*/
|
||||
public static String getLightStyleUrl(int version) {
|
||||
return String.format(Locale.US, LIGHT_BASE, version);
|
||||
return String.format(MapboxConstants.MAPBOX_LOCALE, LIGHT_BASE, version);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -113,7 +109,7 @@ public class Style {
|
||||
* @return uri to load style from
|
||||
*/
|
||||
public static String getDarkStyleUrl(int version) {
|
||||
return String.format(Locale.US, DARK_BASE, version);
|
||||
return String.format(MapboxConstants.MAPBOX_LOCALE, DARK_BASE, version);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -131,7 +127,7 @@ public class Style {
|
||||
* @return uri to load style from
|
||||
*/
|
||||
public static String getSatelliteStyleUrl(int version) {
|
||||
return String.format(Locale.US, SATELLITE_BASE, version);
|
||||
return String.format(MapboxConstants.MAPBOX_LOCALE, SATELLITE_BASE, version);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,7 +145,7 @@ public class Style {
|
||||
* @return uri to load style from
|
||||
*/
|
||||
public static String getSatelliteStreetsStyleUrl(int version) {
|
||||
return String.format(Locale.US, SATELLITE_STREETS_BASE, version);
|
||||
return String.format(MapboxConstants.MAPBOX_LOCALE, SATELLITE_STREETS_BASE, version);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user