|
|
@@ -84,6 +84,7 @@ public class SplashAct extends BaseActivity implements EasyPermissions.Permissio
|
|
|
|
|
|
VideoView videoView;
|
|
|
private boolean isClick;
|
|
|
+ private boolean goLink;//跳转到了广告对应的页面
|
|
|
|
|
|
private static final int PERMISSON_REQUESTCODE = 1;
|
|
|
/**
|
|
|
@@ -139,7 +140,7 @@ public class SplashAct extends BaseActivity implements EasyPermissions.Permissio
|
|
|
super.handleMessage(msg);
|
|
|
switch (msg.what) {
|
|
|
case 0:
|
|
|
- if (!isRequestCodePermissions && !isLoadingData && timerIsFinish())
|
|
|
+ if (!isRequestCodePermissions && !isLoadingData && timerIsFinish() && !goLink)
|
|
|
gotoNext();
|
|
|
else
|
|
|
sendHandlerMessages(100);
|
|
|
@@ -327,6 +328,7 @@ public class SplashAct extends BaseActivity implements EasyPermissions.Permissio
|
|
|
protected void onResume() {
|
|
|
super.onResume();
|
|
|
isResume = true;
|
|
|
+ goLink = false;
|
|
|
if (videoView != null)
|
|
|
videoView.resume();
|
|
|
}
|
|
|
@@ -402,6 +404,7 @@ public class SplashAct extends BaseActivity implements EasyPermissions.Permissio
|
|
|
case R.id.splash_know_ad_tv:
|
|
|
case R.id.splash_click_view:
|
|
|
if (advertising != null) {
|
|
|
+ goLink = true;
|
|
|
goAdLink(activity, advertising);
|
|
|
AD_SPLASH.onEvent("ad_id", advertising.getId());
|
|
|
} else {
|