Commit 8618525c authored by mengcuiguang's avatar mengcuiguang

代码优化

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