commit
9386670531
1 changed files with 3 additions and 3 deletions
|
@ -146,9 +146,6 @@ public class OsmandApplication extends MultiDexApplication {
|
|||
appCustomization.setup(this);
|
||||
osmandSettings = appCustomization.getOsmandSettings();
|
||||
appInitializer.initVariables();
|
||||
if (osmandSettings.ENABLE_PROXY.get()) {
|
||||
NetworkUtils.setProxy(osmandSettings.PROXY_HOST.get(), osmandSettings.PROXY_PORT.get());
|
||||
}
|
||||
if (appInitializer.isAppVersionChanged() && appInitializer.getPrevAppVersion() < AppInitializer.VERSION_2_3) {
|
||||
osmandSettings.freezeExternalStorageDirectory();
|
||||
} else if (appInitializer.isFirstTime()) {
|
||||
|
@ -552,6 +549,9 @@ public class OsmandApplication extends MultiDexApplication {
|
|||
if (!(uncaughtExceptionHandler instanceof DefaultExceptionHandler)) {
|
||||
Thread.setDefaultUncaughtExceptionHandler(new DefaultExceptionHandler());
|
||||
}
|
||||
if (NetworkUtils.getProxy() == null && osmandSettings.ENABLE_PROXY.get()) {
|
||||
NetworkUtils.setProxy(osmandSettings.PROXY_HOST.get(), osmandSettings.PROXY_PORT.get());
|
||||
}
|
||||
appInitializer.startApplication();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue