Commit 63caef16 authored by mengcuiguang's avatar mengcuiguang

去除用户提示

parent 82b27af0
......@@ -8,7 +8,7 @@ import com.bytedance.sdk.openadsdk.TTNativeExpressAd
import com.mints.goodmoney.MintsApplication
import com.mints.goodmoney.manager.TtCsjAdManager
import com.mints.goodmoney.utils.LogUtil
import com.mints.library.utils.DensityUtils
import com.mints.goodmoney.utils.ToastUtil
/**
* banner管理
......@@ -38,6 +38,9 @@ object BannerManager {
}
}
// ToastUtil.showLong(MintsApplication.getContext(), "csj banner:$codeId")
adNative?.let {
val adSlot = AdSlot.Builder()
.setCodeId(codeId) //广告位id
......
......@@ -118,7 +118,7 @@ public class YlhVedioAdManager extends BaseVideoAd implements VedioAdManagerView
ylhPostId = YlhAdManager.INSTANCE.getYLH_AD_VEDIO_MOREDIALOG_POSTID();
break;
}
ToastUtil.showLong(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
// ToastUtil.showLong(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
if (rewardVideoAD != null) {
rewardVideoAD = null;
}
......
......@@ -69,7 +69,7 @@ public class TTNativeExpressManager {
* @param viewHeight
*/
private void getTtNativeExpress(String codeId, FrameLayout view, float viewWidth, float viewHeight) {
ToastUtil.showLong(MintsApplication.getContext(), "奖励信息流:" + codeId);
// ToastUtil.showLong(MintsApplication.getContext(), "奖励信息流:" + codeId);
// Context context= MintsApplication.getContext();
//step4:创建广告请求参数AdSlot,具体参数含义参考文档
......
......@@ -107,7 +107,7 @@ public class TTPreLoadCarrierExpressManager {
public void loadTtFrameLayout(String codeId) {
// init();
ToastUtil.showLong(MintsApplication.getContext(), "通用信息流:" + codeId);
// ToastUtil.showLong(MintsApplication.getContext(), "通用信息流:" + codeId);
if (mWorkHandler != null) {
Message msg = Message.obtain();
......
......@@ -38,6 +38,12 @@ class DhGameActivity : BaseActivity(), View.OnClickListener {
initListener()
}
override fun onPause() {
super.onPause()
loadH5Game()
}
override fun onDestroy() {
super.onDestroy()
......
......@@ -8,9 +8,11 @@ import android.view.KeyEvent
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.mints.goodmoney.MintsApplication
import com.mints.goodmoney.R
import com.mints.goodmoney.manager.YlhAdManager
import com.mints.goodmoney.ui.activitys.base.BaseActivity
import com.mints.goodmoney.utils.ToastUtil
import com.mints.library.net.netstatus.NetUtils
import com.qq.e.ads.splash.SplashAD
import com.qq.e.ads.splash.SplashADListener
......@@ -48,6 +50,9 @@ class SplashADActivity : BaseActivity(), SplashADListener {
} else {
try {
container = findViewById<View>(R.id.splash_container) as ViewGroup
// ToastUtil.showLong(MintsApplication.getContext(), "ylh splash:$YlhAdManager.YLH_AD_SPLASH_POSTID")
fetchSplashAD(this, container, skipView, YlhAdManager.YLH_AD_SPLASH_POSTID, this, 0)
} catch (e: Exception) {
readyGoOtherActivity()
......
......@@ -39,6 +39,9 @@ class MainMyAdapter(context: Context, taskData: MutableList<MyInfo.AutoListBean>
// 掌阅阅读
const val TO_ZHANGYUE = "TO_ZHANGYUE"
// 电魂
const val TO_DHGAME = "TO_DHGAME"
}
private var mContext: Context = context
......
......@@ -552,6 +552,14 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
showToast("请重新退出账号登录")
}
}
MainMyAdapter.TO_DHGAME -> {
if (!UserManager.getInstance().userIsLogin()) {
readyGo(WxLoginActivity::class.java)
return
}
readyGo(DhGameActivity::class.java)
}
}
}
}
......@@ -722,14 +730,6 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_EAT)
readyGo(FoodSubsidyActivity::class.java)
}
Constant.HOT_ACTIVITY_DHGAME -> {
if (!UserManager.getInstance().userIsLogin()) {
readyGo(WxLoginActivity::class.java)
return
}
readyGo(DhGameActivity::class.java)
}
else -> {
if (!TextUtils.isEmpty(hotBean.url) && !TextUtils.isEmpty(hotBean.title)) {
val bundle = Bundle()
......
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