homefrag flag 设置
This commit is contained in:
parent
0d5bbc5813
commit
3ffa288046
|
|
@ -1,5 +1,6 @@
|
||||||
package com.gamedog.vididin.main.fragments
|
package com.gamedog.vididin.main.fragments
|
||||||
|
|
||||||
|
import android.util.Log
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.core.graphics.toColorInt
|
import androidx.core.graphics.toColorInt
|
||||||
|
|
@ -54,7 +55,7 @@ class HomeFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnSwit
|
||||||
private var mSwipedVideoTotal = 0
|
private var mSwipedVideoTotal = 0
|
||||||
private var mLastShowedRewardedAd = true
|
private var mLastShowedRewardedAd = true
|
||||||
|
|
||||||
|
override val isLazyInit = false
|
||||||
private var mHasShowGuide: Boolean = false
|
private var mHasShowGuide: Boolean = false
|
||||||
private var mTotalMs: Long = 0L
|
private var mTotalMs: Long = 0L
|
||||||
override val mViewModel: ViewModel by viewModels()
|
override val mViewModel: ViewModel by viewModels()
|
||||||
|
|
@ -256,7 +257,6 @@ class HomeFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnSwit
|
||||||
FragmentLifecycleCallbacks() {
|
FragmentLifecycleCallbacks() {
|
||||||
override fun onFragmentResumed(fm: FragmentManager, fra: Fragment) {
|
override fun onFragmentResumed(fm: FragmentManager, fra: Fragment) {
|
||||||
super.onFragmentResumed(fm, fra)
|
super.onFragmentResumed(fm, fra)
|
||||||
setHomeTabStyle(fra)
|
|
||||||
}
|
}
|
||||||
}, false)
|
}, false)
|
||||||
|
|
||||||
|
|
@ -269,7 +269,19 @@ class HomeFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnSwit
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun ViewBinding.onUiStateCollect(uiState: UiState) {
|
override fun ViewBinding.onUiStateCollect(uiState: UiState) {
|
||||||
|
showCurListInfo("------- before ---------")
|
||||||
mViewPagerAdapter.submitList(uiState.playLists)
|
mViewPagerAdapter.submitList(uiState.playLists)
|
||||||
|
showCurListInfo("------- after ---------")
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showCurListInfo(tag: String) {
|
||||||
|
val allList = mViewPagerAdapter.getCurrentList()
|
||||||
|
var allInfos = tag + " Total= ${allList.size}\n"
|
||||||
|
allList.forEach {
|
||||||
|
allInfos += (it.id + " / ")
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.e("hahah", allInfos)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue