Merge pull request #7027 from osmandapp/CustomizationImprovements
Fix rendering settings update after customization
This commit is contained in:
commit
36b599d363
2 changed files with 6 additions and 0 deletions
|
@ -281,6 +281,7 @@ public class OsmandApplication extends MultiDexApplication {
|
||||||
public void setOsmandSettings(OsmandSettings osmandSettings) {
|
public void setOsmandSettings(OsmandSettings osmandSettings) {
|
||||||
//android.os.Process.killProcess(android.os.Process.myPid());
|
//android.os.Process.killProcess(android.os.Process.myPid());
|
||||||
this.osmandSettings = osmandSettings;
|
this.osmandSettings = osmandSettings;
|
||||||
|
resourceManager.getRenderer().updateSettings();
|
||||||
OsmandPlugin.initPlugins(this);
|
OsmandPlugin.initPlugins(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,11 @@ public class MapRenderRepositories {
|
||||||
return prevBmpLocation;
|
return prevBmpLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateSettings() {
|
||||||
|
prefs = context.getSettings();
|
||||||
|
clearCache();
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized void closeConnection(String file) {
|
public synchronized void closeConnection(String file) {
|
||||||
LinkedHashMap<String, BinaryMapIndexReader> cpfiles = new LinkedHashMap<String, BinaryMapIndexReader>(files);
|
LinkedHashMap<String, BinaryMapIndexReader> cpfiles = new LinkedHashMap<String, BinaryMapIndexReader>(files);
|
||||||
BinaryMapIndexReader bmir = cpfiles.remove(file);
|
BinaryMapIndexReader bmir = cpfiles.remove(file);
|
||||||
|
|
Loading…
Reference in a new issue