Add rendering settings update after customization

This commit is contained in:
Chumva 2019-06-10 15:38:47 +03:00
parent 130ff5ed85
commit 7ad500a5f9
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);