This commit is contained in:
PavelRatushny 2017-10-04 18:12:46 +03:00
parent 12b12896b4
commit 948dda9efb

View file

@ -364,6 +364,9 @@ public class OsmandApplication extends MultiDexApplication {
public void checkApplicationIsBeingInitialized(Activity activity, AppInitializeListener listener) {
// start application if it was previously closed
startApplication();
if (NetworkUtils.getProxy() == null && osmandSettings.ENABLE_PROXY.get()) {
NetworkUtils.setProxy(osmandSettings.PROXY_HOST.get(), osmandSettings.PROXY_PORT.get());
}
if(listener != null) {
appInitializer.addListener(listener);
}