|
|
@@ -17,10 +17,8 @@ import android.util.Log;
|
|
|
import android.view.View;
|
|
|
import android.widget.*;
|
|
|
import com.bumptech.glide.Glide;
|
|
|
-import com.jasmine.cantaloupe.engine.JasmineEngine;
|
|
|
import com.jasmine.cantaloupe.engine.SplashEngine;
|
|
|
import com.jasmine.cantaloupe.ui.widget.AdFrameLayout;
|
|
|
-import com.jasmine.cantaloupe.utils.LogUtils2;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.greendao.DDProviderHelper;
|
|
|
import com.sheep.gamegroup.greendao.download.SheepAd;
|
|
|
@@ -38,14 +36,11 @@ import com.sheep.gamegroup.view.activity.helper.AdHelper;
|
|
|
import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
-import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
import com.tencent.klevin.KleinManager;
|
|
|
import com.tencent.klevin.base.callback.KleinResponseCallback;
|
|
|
-
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
-
|
|
|
import butterknife.BindView;
|
|
|
import butterknife.OnClick;
|
|
|
import io.reactivex.Observable;
|
|
|
@@ -53,7 +48,6 @@ import io.reactivex.Observer;
|
|
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
|
import io.reactivex.functions.Action;
|
|
|
import io.reactivex.schedulers.Schedulers;
|
|
|
-
|
|
|
import static com.sheep.gamegroup.view.activity.helper.AdHelper.*;
|
|
|
import static com.tencent.klevin.base.okhttp.ErrorCode.*;
|
|
|
|
|
|
@@ -74,6 +68,8 @@ public class SplashAct extends BaseActivity {
|
|
|
ImageView splash_image_view;
|
|
|
@BindView(R.id.splash_skip)
|
|
|
TextView splash_skip;
|
|
|
+ @BindView(R.id.splash_skip_view)
|
|
|
+ TextView yt_splash_skip_view;
|
|
|
@BindView(R.id.splash_video_view)
|
|
|
VideoView splash_video_view;
|
|
|
@BindView(R.id.ad_flag)
|
|
|
@@ -183,6 +179,10 @@ public class SplashAct extends BaseActivity {
|
|
|
public void onFail(int i) {
|
|
|
if (BuildConfig.DEBUG)
|
|
|
Log.d("!!!!!Fail", String.valueOf(i));
|
|
|
+ if(i == KLSplashAdEvent_Timeout){
|
|
|
+ //拉取广告错误或超时,直接跳过
|
|
|
+ sendHandlerMessages(0);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -236,6 +236,7 @@ public class SplashAct extends BaseActivity {
|
|
|
@Override
|
|
|
public void onSplashShow() {
|
|
|
Log.i("jasmine-ad", "展示广告");
|
|
|
+ yt_splash_skip_view.setVisibility(View.VISIBLE);
|
|
|
if (!aded && ad != null) {
|
|
|
AdHelper.stat(ad.getAd_id(), 1, ad.getAd_type());
|
|
|
aded = true;
|