Skip to content

Commit

Permalink
Merge pull request #66 from ngageoint/develop
Browse files Browse the repository at this point in the history
Fix for basemap workflow errors
  • Loading branch information
jclark118 authored Jul 21, 2023
2 parents f94cbf9 + efe2ce4 commit 96acbe8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mapcache/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
resValue "string", "applicationId", applicationId
minSdkVersion 28
targetSdkVersion 31
versionCode 52
versionCode 53
versionName '2.1.7'
multiDexEnabled true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2225,9 +2225,11 @@ private void setAppDarkMode() {
boolean appDarkMode = settings.getBoolean(SETTINGS_APP_DARK_KEY, false);
if (appDarkMode) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
if (map == null || getContext() == null) return;
map.setMapStyle(MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.dark_map));
} else {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
if (map == null || getContext() == null) return;
map.setMapStyle(MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.default_map));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void saveSettings(Activity activity, SharedPreferences prefs, BasemapSett
if(settings.getSelectedBasemap().length > 0) {
BasemapServerModel model = settings.getSelectedBasemap()[0];
String serverUrl = model.getServerUrl();
if(serverUrl == null || serverUrl.isEmpty()) return;
int mapType = Integer.parseInt(serverUrl);
editor.putInt(BasemapSettingsIO.MAP_TYPE_KEY, mapType);

Expand Down

0 comments on commit 96acbe8

Please sign in to comment.