From 654bf79dbefb25efbd4026fc94d5ad606b61d67f Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 2 Apr 2015 01:18:21 +0200 Subject: [PATCH] Slightly change code (bug somewhere in dex?) --- OsmAnd/src/net/osmand/plus/AppInitializer.java | 4 ---- OsmAnd/src/net/osmand/plus/OsmandApplication.java | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/AppInitializer.java b/OsmAnd/src/net/osmand/plus/AppInitializer.java index a8ad9a7284..b54ebbca00 100644 --- a/OsmAnd/src/net/osmand/plus/AppInitializer.java +++ b/OsmAnd/src/net/osmand/plus/AppInitializer.java @@ -318,10 +318,6 @@ public class AppInitializer implements IProgress { - public void initPlugins() { - OsmandPlugin.initPlugins(app); - } - public net.osmand.router.RoutingConfiguration.Builder getLazyDefaultRoutingConfig() { long tm = System.currentTimeMillis(); try { diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index 395202c21f..fcf13c2ffb 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -145,8 +145,7 @@ public class OsmandApplication extends Application { startApplication(); System.out.println("Time to start application " + (System.currentTimeMillis() - timeToStart) + " ms. Should be less < 800 ms"); timeToStart = System.currentTimeMillis(); - appInitializer.initPlugins(); - + OsmandPlugin.initPlugins(this); System.out.println("Time to init plugins " + (System.currentTimeMillis() - timeToStart) + " ms. Should be less < 800 ms"); }