Commit 357a9e9c authored by mengcuiguang's avatar mengcuiguang

高额任务中断继续看广告

parent 2afcabac
......@@ -3,6 +3,7 @@ package com.mints.goodmoney.ad.vedio;
import android.app.Activity;
import android.os.SystemClock;
import com.mints.goodmoney.MintsApplication;
import com.mints.goodmoney.common.AppConfig;
import com.mints.goodmoney.common.Constant;
import com.mints.goodmoney.manager.TrackManager;
......@@ -10,6 +11,7 @@ import com.mints.goodmoney.manager.YlhAdManager;
import com.mints.goodmoney.mvp.presenters.YlhVedioAdPresenter;
import com.mints.goodmoney.mvp.views.VedioAdManagerView;
import com.mints.goodmoney.utils.LogUtil;
import com.mints.goodmoney.utils.ToastUtil;
import com.qq.e.ads.rewardvideo.RewardVideoAD;
import com.qq.e.ads.rewardvideo.RewardVideoADListener;
import com.qq.e.comm.util.AdError;
......@@ -124,7 +126,7 @@ public class YlhVedioAdManager extends BaseVedioAd implements VedioAdManagerView
ylhPostId = YlhAdManager.INSTANCE.getYLH_AD_VEDIO_MOREDIALOG_POSTID();
break;
}
// ToastUtil.show(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
ToastUtil.show(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
if (rewardVideoAD != null) {
rewardVideoAD = null;
}
......
......@@ -490,11 +490,12 @@ class MyFragment : BaseFragment(),
ps.remove(Constant.HIGH_TASK_PKG_NAME)
}
3 -> {
// if (mCurrentPkg == null) {
// // 如果当前包名为空,获取本地存储的包名
// mCurrentPkg = ps.getString(Constant.HIGH_TASK_PKG_NAME, "")
// }
// if (TextUtils.isEmpty(mCurrentPkg)) {
if (mCurrentPkg == null) {
// 如果当前包名为空,获取本地存储的包名
mCurrentPkg = ps.getString(Constant.HIGH_TASK_PKG_NAME, "")
}
if (TextUtils.isEmpty(mCurrentPkg)) {
showToast("任务异常,请重试~")
myPresenter.setHighTaskType("0")
......@@ -1243,7 +1244,7 @@ class MyFragment : BaseFragment(),
try {
val pkg = intent.getStringExtra("pkg")
mCurrentPkg = pkg
ps.put(Constant.HIGH_TASK_PKG_NAME, pkg)
// ps.put(Constant.HIGH_TASK_PKG_NAME, pkg)
myPresenter.setHighTaskType("3")
} catch (e: Exception) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment