Commit 2f7993c4 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent cc0eca2c
......@@ -19,7 +19,7 @@ public class AppConfig {
public static int awardRedpkg = 0;
public static int awardYuanbao = 0;
public static int csjAdRate = 100;
public static int adShowToastRate = 50;
public static int adShowToastRate = 30;
public static int taskListId = -1;
public static double signCash1 = 0.0;
......
......@@ -725,7 +725,6 @@ class NewTxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
R.id.tv_newcomer_time -> {
newcomerDialog?.dismiss()
super_short_video_view.resume()
showRewardAnim(188800, 0)
}
}
}
......
......@@ -127,34 +127,34 @@ class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewH
}
}
ExpressManager.instance.getAdView(
object : ExpressAdCallback {
override fun loadSuccess(adView: FrameLayout?) {
adView?.let {
UIUtils.removeFromParent(it)
val fmAd = holder.getView<FrameLayout>(R.id.fl_ad)
fmAd.removeAllViews()
fmAd.addView(it)
}
ExpressManager.instance.preLoadAd()
}
override fun renderSuccess(adView: FrameLayout?): Boolean {
adView?.let {
UIUtils.removeFromParent(it)
val fmAd = holder.getView<FrameLayout>(R.id.fl_ad)
fmAd.removeAllViews()
fmAd.addView(it)
}
ExpressManager.instance.preLoadAd()
return false
}
override fun loadFail() {
}
})
// ExpressManager.instance.getAdView(
// object : ExpressAdCallback {
// override fun loadSuccess(adView: FrameLayout?) {
// adView?.let {
// UIUtils.removeFromParent(it)
// val fmAd = holder.getView<FrameLayout>(R.id.fl_ad)
// fmAd.removeAllViews()
// fmAd.addView(it)
// }
//
// ExpressManager.instance.preLoadAd()
// }
//
// override fun renderSuccess(adView: FrameLayout?): Boolean {
// adView?.let {
// UIUtils.removeFromParent(it)
// val fmAd = holder.getView<FrameLayout>(R.id.fl_ad)
// fmAd.removeAllViews()
// fmAd.addView(it)
// }
//
// ExpressManager.instance.preLoadAd()
// return false
// }
//
// override fun loadFail() {
// }
// })
}
private fun initVideoHolder(holder: BaseViewHolder, item: IndexList.VedioEpisodeBean?) {
......
......@@ -12,6 +12,7 @@
android:scaleType="center" />
<com.duben.supertheater.ui.widgets.RoundRectLayout
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#99000000">
......
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