diff options
author | Roman Romanov <rromanov@65gb.net> | 2017-04-05 13:25:56 +0300 |
---|---|---|
committer | Roman Romanov <rromanov@65gb.net> | 2017-04-12 12:23:46 +0300 |
commit | b13bf49cefac79a7cb8d7af001fd9fd44d215a9e (patch) | |
tree | 6dd283c9526d50e293a645c521d1bbb03cbb3ade | |
parent | 6125b416e267a500e3030b8db8156ea1ef4cf6ea (diff) |
[android] move PushwooshHelper.nativeProcessFirstLaunch() to the SplashActivity.
-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; } |