|
|
@@ -76,6 +76,7 @@ public class SplashAct extends BaseActivity {
|
|
|
private SheepAd ad;
|
|
|
|
|
|
private boolean jumped = false;
|
|
|
+ private boolean aded = false;
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
|
@@ -158,8 +159,11 @@ public class SplashAct extends BaseActivity {
|
|
|
|
|
|
private void loadAdvertising() {
|
|
|
if (this.isDestroyed()) return;
|
|
|
- LogUtil.logI("StatSplashAd: " + ad.getAd_id() + ", " + 1);
|
|
|
- AdHelper.stat(ad.getAd_id(), 1);
|
|
|
+ if (!aded) {
|
|
|
+ AdHelper.stat(ad.getAd_id(), 1);
|
|
|
+ aded = true;
|
|
|
+ }
|
|
|
+
|
|
|
if (ad.isImage()) {
|
|
|
Glide.with(this).load(ad.getAd_img()).into(splash_image_view);
|
|
|
ViewUtil.setVisibility(splash_video_view, View.GONE);
|