From e8cfe3fd8baa9fa126cfdcdb9695dc4feeb67edd Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Fri, 15 May 2020 15:27:37 +0300 Subject: [PATCH] set PT to safemode (java) by default for now --- OsmAnd/src/net/osmand/plus/AppInitializer.java | 3 ++- OsmAnd/src/net/osmand/plus/OsmandSettings.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/AppInitializer.java b/OsmAnd/src/net/osmand/plus/AppInitializer.java index 663e0dad42..4f99076c8c 100644 --- a/OsmAnd/src/net/osmand/plus/AppInitializer.java +++ b/OsmAnd/src/net/osmand/plus/AppInitializer.java @@ -756,7 +756,8 @@ public class AppInitializer implements IProgress { // native depends on renderers initNativeCore(); notifyEvent(InitEvents.NATIVE_INITIALIZED); - + //delete in next release: + app.osmandSettings.PT_SAFE_MODE.set(true); app.favorites.loadFavorites(); app.gpxDbHelper.loadGpxItems(); notifyEvent(InitEvents.FAVORITES_INITIALIZED); diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 0e94aefd4e..613102f7d3 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -3780,7 +3780,7 @@ public class OsmandSettings { // this value string is synchronized with settings_pref.xml preference name public final OsmandPreference SAFE_MODE = new BooleanPreference("safe_mode", false).makeGlobal(); - public final OsmandPreference PT_SAFE_MODE = new BooleanPreference("pt_safe_mode", false).makeGlobal(); + public final OsmandPreference PT_SAFE_MODE = new BooleanPreference("pt_safe_mode", true).makeGlobal(); public final OsmandPreference NATIVE_RENDERING_FAILED = new BooleanPreference("native_rendering_failed_init", false).makeGlobal(); public final OsmandPreference USE_OPENGL_RENDER = new BooleanPreference("use_opengl_render",