Commit 1b1cf3da authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 7a7f546e
...@@ -241,7 +241,7 @@ class TurnTableFragment : BaseFragment(), TurnTableView, AdapterView.OnItemClick ...@@ -241,7 +241,7 @@ class TurnTableFragment : BaseFragment(), TurnTableView, AdapterView.OnItemClick
onDestroyBroadcastReceiver() onDestroyBroadcastReceiver()
onDestoryTimer() onDestoryTimer()
turnTableView?.stopAnim() turnTableView?.stopAnim()
PreCsjGroMoreVideoAdManager.getInstance().setVideoAdStatusListener(null)
mainTurnAdapter?.setOnItemChildClickListener(null) mainTurnAdapter?.setOnItemChildClickListener(null)
mainTurnAdapter = null mainTurnAdapter = null
...@@ -565,7 +565,7 @@ class TurnTableFragment : BaseFragment(), TurnTableView, AdapterView.OnItemClick ...@@ -565,7 +565,7 @@ class TurnTableFragment : BaseFragment(), TurnTableView, AdapterView.OnItemClick
carrierType = Constant.CARRIER_CHALLENGE_TURN carrierType = Constant.CARRIER_CHALLENGE_TURN
if (AppConfig.isVideoSleep) { if (AppConfig.isVideoSleep) {
turnTableView.stopAnim() turnTableView?.stopAnim()
showToast("看视频太快了,休息一下再试吧!") showToast("看视频太快了,休息一下再试吧!")
return return
} }
...@@ -576,11 +576,11 @@ class TurnTableFragment : BaseFragment(), TurnTableView, AdapterView.OnItemClick ...@@ -576,11 +576,11 @@ class TurnTableFragment : BaseFragment(), TurnTableView, AdapterView.OnItemClick
.setVideoAdStatusListener(object : VideoAdStatusListener { .setVideoAdStatusListener(object : VideoAdStatusListener {
override fun adFail() { override fun adFail() {
isTurnTable = true isTurnTable = true
turnTableView.stopAnim() turnTableView?.stopAnim()
} }
override fun adSuccess() { override fun adSuccess() {
turnTableView.stopAnim() turnTableView?.stopAnim()
videoAdingSuccess(Constant.GROMORE_VEDIO_AD) videoAdingSuccess(Constant.GROMORE_VEDIO_AD)
} }
......
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