@rnmapbox/maps 10.0.9-rc.1 → 10.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt
CHANGED
|
@@ -567,7 +567,8 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
|
|
|
567
567
|
fun applyLocalizeLabels() {
|
|
568
568
|
val localeStr = mLocaleString
|
|
569
569
|
if (localeStr != null) {
|
|
570
|
-
val locale = if (localeStr == "current") Locale.getDefault() else Locale(
|
|
570
|
+
val locale = if (localeStr == "current") Locale.getDefault() else Locale.Builder()
|
|
571
|
+
.setLanguageTag(localeStr).build()
|
|
571
572
|
savedStyle?.localizeLabels(locale, mLocaleLayerIds)
|
|
572
573
|
}
|
|
573
574
|
}
|