forked from organicmaps/organicmaps
[android] move PushwooshHelper.nativeProcessFirstLaunch() to the SplashActivity.
This commit is contained in:
parent
93f2195b68
commit
c8e5145f58
2 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue