Commit 60f3ba95 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 4fc8d0b6
...@@ -3,6 +3,7 @@ package com.mints.goodmoney.ad.video; ...@@ -3,6 +3,7 @@ package com.mints.goodmoney.ad.video;
import android.app.Activity; import android.app.Activity;
import android.os.SystemClock; import android.os.SystemClock;
import com.mints.goodmoney.MintsApplication;
import com.mints.goodmoney.common.AppConfig; import com.mints.goodmoney.common.AppConfig;
import com.mints.goodmoney.common.Constant; import com.mints.goodmoney.common.Constant;
import com.mints.goodmoney.manager.TrackManager; import com.mints.goodmoney.manager.TrackManager;
...@@ -10,6 +11,7 @@ import com.mints.goodmoney.manager.YlhAdManager; ...@@ -10,6 +11,7 @@ import com.mints.goodmoney.manager.YlhAdManager;
import com.mints.goodmoney.mvp.presenters.YlhVideoAdPresenter; import com.mints.goodmoney.mvp.presenters.YlhVideoAdPresenter;
import com.mints.goodmoney.mvp.views.VideoAdManagerView; import com.mints.goodmoney.mvp.views.VideoAdManagerView;
import com.mints.goodmoney.utils.LogUtil; 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.RewardVideoAD;
import com.qq.e.ads.rewardvideo.RewardVideoADListener; import com.qq.e.ads.rewardvideo.RewardVideoADListener;
import com.qq.e.comm.util.AdError; import com.qq.e.comm.util.AdError;
...@@ -133,7 +135,7 @@ public class YlhVideoAdManager extends BaseVideoAd implements VideoAdManagerView ...@@ -133,7 +135,7 @@ public class YlhVideoAdManager extends BaseVideoAd implements VideoAdManagerView
ylhPostId = YlhAdManager.INSTANCE.getYLH_AD_VEDIO_MOREDIALOG_POSTID(); ylhPostId = YlhAdManager.INSTANCE.getYLH_AD_VEDIO_MOREDIALOG_POSTID();
break; break;
} }
// ToastUtil.show(MintsApplication.getContext(), "ylh vedio:" + ylhPostId); ToastUtil.show(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
if (rewardVideoAD != null) { if (rewardVideoAD != null) {
rewardVideoAD = null; rewardVideoAD = null;
} }
......
...@@ -561,6 +561,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener { ...@@ -561,6 +561,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
carrierType == Constant.CARRIER_BLESSINGBAG_DOUBLE || // 首页福袋翻倍 carrierType == Constant.CARRIER_BLESSINGBAG_DOUBLE || // 首页福袋翻倍
carrierType == Constant.CARRIER_SMALLHOMEVEDIO_DOUBLE || // 短视频红包翻倍 carrierType == Constant.CARRIER_SMALLHOMEVEDIO_DOUBLE || // 短视频红包翻倍
carrierType == Constant.CARRIER_HOMEVEDIO_DOUBLE) { // 小视频红包翻倍 carrierType == Constant.CARRIER_HOMEVEDIO_DOUBLE) { // 小视频红包翻倍
isSuperTask = showHigh
if (isSuperTask) { if (isSuperTask) {
refreshHighTask(highCoin) refreshHighTask(highCoin)
} }
......
...@@ -56,7 +56,11 @@ class TaskDialog(context: Context) : ...@@ -56,7 +56,11 @@ class TaskDialog(context: Context) :
} }
fun setData(data: CoralAD, seconds: Int, coin: Int) { fun setData(data: CoralAD, seconds: Int, coin: Int) {
tvText1.text = "下载并试玩$seconds" + "秒" if (seconds > 0) {
tvText1.text = "下载并试玩$seconds" + "秒"
} else {
tvText1.text = "下载领取金币"
}
tvText2.text = "+$coin" + "金币" tvText2.text = "+$coin" + "金币"
tvTitle.text = data.title tvTitle.text = data.title
GlideUtils.loadImageView(context, data.icon, ivAvatar) GlideUtils.loadImageView(context, data.icon, ivAvatar)
......
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