From f4f3d2d5a141691aa4948bc96ceeb9238cddff4c Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Fri, 16 Sep 2016 19:38:32 +0300 Subject: [PATCH] Fix --- .../net/osmand/plus/activities/MapActivity.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index f210008352..959b9d409b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -279,13 +279,6 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven } mapView.refreshMap(true); - if (((app.getAppInitializer().isFirstTime() && Version.isDeveloperVersion(app)) - || !app.getResourceManager().isAnyMapIstalled()) && FirstUsageWelcomeFragment.SHOW) { - FirstUsageWelcomeFragment.SHOW = false; - getSupportFragmentManager().beginTransaction() - .add(R.id.fragmentContainer, new FirstUsageWelcomeFragment(), - FirstUsageWelcomeFragment.TAG).commitAllowingStateLoss(); - } mapActions.updateDrawerMenu(); drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); @@ -628,6 +621,14 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven } } enableDrawer(); + + if (((app.getAppInitializer().isFirstTime() && Version.isDeveloperVersion(app)) + || !app.getResourceManager().isAnyMapIstalled()) && FirstUsageWelcomeFragment.SHOW) { + getSupportFragmentManager().beginTransaction() + .add(R.id.fragmentContainer, new FirstUsageWelcomeFragment(), + FirstUsageWelcomeFragment.TAG).commitAllowingStateLoss(); + } + FirstUsageWelcomeFragment.SHOW = false; } @Override