Commit 93dd5463 authored by jyx's avatar jyx

处理动画资源未释放问题

parent 40dc5e28
......@@ -86,11 +86,16 @@ class HorizChannelFragment : BaseFragment(), HorizChannelView, View.OnClickListe
channelFragment?.onPause()
}
override fun onDestroy() {
super.onDestroy()
override fun onDestroyView() {
cdvvYilanTime?.onDestory()
cdvvYilanTime?.setCountDownVedioListener(null)
super.onDestroyView()
}
override fun onDestroy() {
super.onDestroy()
horizChannelPresenter.detachView()
}
......
......@@ -131,11 +131,14 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
littleVideoFragment?.userVisibleHint = isVisibleToUser
}
override fun onDestroy() {
super.onDestroy()
override fun onDestroyView() {
cdvvYilanTime?.onDestory()
cdvvYilanTime?.setCountDownVedioListener(null)
super.onDestroyView()
}
override fun onDestroy() {
super.onDestroy()
// 广告回调解绑
YLUIConfig.getInstance().unRegisterAdListener()
......
......@@ -155,10 +155,14 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
}
}
override fun onDestroyView() {
item_clock_signview.onDestory()
super.onDestroyView()
}
override fun onDestroy() {
super.onDestroy()
BxmManager.onDestory()
item_clock_signview.onDestory()
myPresenter.detachView()
}
......
......@@ -41,8 +41,7 @@
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_alignParentBottom="true"
android:background="@color/my_color_gray3" />
android:background="@color/my_color_gray" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/view_pager_friends"
......
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