Merge pull request #7027 from osmandapp/CustomizationImprovements

Fix rendering settings update after customization
This commit is contained in:
Alexey 2019-06-10 15:44:39 +03:00 committed by GitHub
commit 36b599d363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -281,6 +281,7 @@ public class OsmandApplication extends MultiDexApplication {
public void setOsmandSettings(OsmandSettings osmandSettings) {
//android.os.Process.killProcess(android.os.Process.myPid());
this.osmandSettings = osmandSettings;
resourceManager.getRenderer().updateSettings();
OsmandPlugin.initPlugins(this);
}

View file

@ -154,6 +154,11 @@ public class MapRenderRepositories {
return prevBmpLocation;
}
public void updateSettings() {
prefs = context.getSettings();
clearCache();
}
public synchronized void closeConnection(String file) {
LinkedHashMap<String, BinaryMapIndexReader> cpfiles = new LinkedHashMap<String, BinaryMapIndexReader>(files);
BinaryMapIndexReader bmir = cpfiles.remove(file);