调整广点通激活数据的发送时机
This commit is contained in:
@ -171,9 +171,7 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
private void requestPermission() {
|
||||
if (EasyPermissions.hasPermissions(this, mPermissions)) {
|
||||
GdtHelper.INSTANCE.logAction(ActionType.START_APP, GdtHelper.NETWORK_TYPE, DeviceUtils.getNetwork(this));
|
||||
} else {
|
||||
if (!EasyPermissions.hasPermissions(this, mPermissions)) {
|
||||
checkAndRequestPermission();
|
||||
}
|
||||
}
|
||||
@ -278,8 +276,9 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
private void launchMainActivity() {
|
||||
getUniqueId();
|
||||
|
||||
// 在可能获取了相关权限后才初始化今日头条SDK
|
||||
// 在可能获取了相关权限后才初始化SDK/发送激活数据
|
||||
TeaHelper.init(getApplication(), HaloApp.getInstance().getChannel());
|
||||
GdtHelper.INSTANCE.logAction(ActionType.START_APP, GdtHelper.NETWORK_TYPE, DeviceUtils.getNetwork(this));
|
||||
|
||||
Bundle bundle = getIntent().getExtras();
|
||||
Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);
|
||||
|
||||
Reference in New Issue
Block a user