meshtastic#413 Add Satellite Map Layers - correct after remove offline regions

pull/416/head^2
wkawecki 2022-04-22 15:00:17 +02:00
rodzic 8b5b33bcd5
commit c997440f75
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -229,10 +229,10 @@ class MapFragment : ScreenFragment("Map"), Logging {
if (userStyleURI != null) {
offlineManager.removeStylePack(userStyleURI!!)
mapView?.getMapboxMap()?.loadStyleUri(Style.OUTDOORS)
mapView?.getMapboxMap()?.loadStyleUri(loadMapStyleFromPref())
} else {
offlineManager.removeStylePack(mapView?.getMapboxMap()?.getStyle()?.styleURI.toString())
mapView?.getMapboxMap()?.loadStyleUri(Style.OUTDOORS)
mapView?.getMapboxMap()?.loadStyleUri(loadMapStyleFromPref())
}
MapboxMap.clearData(resourceOptions) {
it.error?.let { error ->