diff options
-rw-r--r-- | android/src/com/mapswithme/maps/MapFragment.java | 6 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/SplashActivity.java | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/android/src/com/mapswithme/maps/MapFragment.java b/android/src/com/mapswithme/maps/MapFragment.java index 8811b5c963..5222840e11 100644 --- a/android/src/com/mapswithme/maps/MapFragment.java +++ b/android/src/com/mapswithme/maps/MapFragment.java @@ -166,11 +166,7 @@ public class MapFragment extends BaseMwmFragment getActivity().getWindowManager().getDefaultDisplay().getMetrics(metrics); final float exactDensityDpi = metrics.densityDpi; - boolean firstStart = SplashActivity.isFirstStart(); - if (firstStart) - PushwooshHelper.nativeProcessFirstLaunch(); - - if (!nativeCreateEngine(surface, (int) exactDensityDpi, firstStart)) + if (!nativeCreateEngine(surface, (int) exactDensityDpi, SplashActivity.isFirstStart())) { reportUnsupported(); return; diff --git a/android/src/com/mapswithme/maps/SplashActivity.java b/android/src/com/mapswithme/maps/SplashActivity.java index f55f0bf35d..539fd857fd 100644 --- a/android/src/com/mapswithme/maps/SplashActivity.java +++ b/android/src/com/mapswithme/maps/SplashActivity.java @@ -21,6 +21,7 @@ import com.mapswithme.util.Counters; import com.mapswithme.util.UiUtils; import com.mapswithme.util.Utils; import com.mapswithme.util.concurrency.UiThread; +import com.mapswithme.util.statistics.PushwooshHelper; import static android.Manifest.permission.ACCESS_COARSE_LOCATION; import static android.Manifest.permission.ACCESS_FINE_LOCATION; @@ -131,6 +132,7 @@ public class SplashActivity extends AppCompatActivity sFirstStart = FirstStartFragment.showOn(this, this); if (sFirstStart) { + PushwooshHelper.nativeProcessFirstLaunch(); UiUtils.hide(mIvLogo); return; } |