Commit 832f4751 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent c88ba2ce
...@@ -10,7 +10,10 @@ import com.bytedance.sdk.dp.IDPDramaListener ...@@ -10,7 +10,10 @@ import com.bytedance.sdk.dp.IDPDramaListener
import com.bytedance.sdk.dp.IDPDrawListener import com.bytedance.sdk.dp.IDPDrawListener
import com.bytedance.sdk.dp.IDPWidget import com.bytedance.sdk.dp.IDPWidget
import com.xinfu.helivideo.R import com.xinfu.helivideo.R
import com.xinfu.helivideo.common.AppConfig
import com.xinfu.helivideo.common.Constant
import com.xinfu.helivideo.manager.LocalVedioManager import com.xinfu.helivideo.manager.LocalVedioManager
import com.xinfu.helivideo.manager.UserManager
import com.xinfu.helivideo.mvp.model.IndexList import com.xinfu.helivideo.mvp.model.IndexList
import com.xinfu.helivideo.mvp.presenters.VideoPresenter import com.xinfu.helivideo.mvp.presenters.VideoPresenter
import com.xinfu.helivideo.mvp.views.VideoView import com.xinfu.helivideo.mvp.views.VideoView
...@@ -95,9 +98,12 @@ class DramaTabFragment : BaseFragment(), VideoView { ...@@ -95,9 +98,12 @@ class DramaTabFragment : BaseFragment(), VideoView {
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
Log.d(TAG, "onResume") Log.d(TAG, "onResume")
dpWidget?.fragment?.onResume()
dpWidget?.fragment?.userVisibleHint = true if (AppConfig.fragmentClickFlag == Constant.FRAGMENT_CLICK_TWO) {
dpWidget?.fragment?.onResume()
dpWidget?.fragment?.userVisibleHint = true
}
} }
override fun onPause() { override fun onPause() {
......
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