Commit 8618525c authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 849b1abd
...@@ -144,7 +144,6 @@ class MyFragment : BaseFragment(), ...@@ -144,7 +144,6 @@ class MyFragment : BaseFragment(),
override fun onPause() { override fun onPause() {
super.onPause() super.onPause()
banner_view.stopAutoScroll() banner_view.stopAutoScroll()
item_clock_signview.stopRedbox() item_clock_signview.stopRedbox()
...@@ -164,7 +163,9 @@ class MyFragment : BaseFragment(), ...@@ -164,7 +163,9 @@ class MyFragment : BaseFragment(),
myPresenter.userLogin() myPresenter.userLogin()
} }
banner_view.startAutoScroll() if (banner_view.visibility == View.VISIBLE) {
banner_view.startAutoScroll()
}
// 刷新喜马拉雅信息流 // 刷新喜马拉雅信息流
TTPreLoadExpressXmlyManager.getInstance().loadTtFrameLayout() TTPreLoadExpressXmlyManager.getInstance().loadTtFrameLayout()
...@@ -361,6 +362,7 @@ class MyFragment : BaseFragment(), ...@@ -361,6 +362,7 @@ class MyFragment : BaseFragment(),
if (mBannerData?.list == null || mBannerData?.list!!.size == 0) { if (mBannerData?.list == null || mBannerData?.list!!.size == 0) {
fl_my_banner.visibility = View.VISIBLE fl_my_banner.visibility = View.VISIBLE
LogUtil.d("TAG", "getMyRotationChartSuc")
banner_view.visibility = View.GONE banner_view.visibility = View.GONE
BannerManager.getTtBanner(TtCsjAdManager.TT_AD_BANNER_MY, fl_my_banner) BannerManager.getTtBanner(TtCsjAdManager.TT_AD_BANNER_MY, fl_my_banner)
} else { } else {
......
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