homefrag flag 设置1

This commit is contained in:
renhaoting 2026-01-15 14:31:34 +08:00
parent 3ffa288046
commit fa18c550ed
1 changed files with 12 additions and 7 deletions

View File

@ -39,6 +39,7 @@ import com.gamedog.vididin.youtubestatistic.RewardConst
import com.gamedog.vididin.youtubestatistic.RewardConst.Companion.Check_Interval_MS
import com.remax.bill.ads.AdResult
import com.remax.bill.ads.ext.AdShowExt
import com.remax.notification.BuildConfig
import com.viddin.videos.free.R
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.launch
@ -271,17 +272,21 @@ class HomeFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnSwit
override fun ViewBinding.onUiStateCollect(uiState: UiState) {
showCurListInfo("------- before ---------")
mViewPagerAdapter.submitList(uiState.playLists)
showCurListInfo("------- after ---------")
lifecycleScope.launch {
showCurListInfo("------- after ---------")
}
}
private fun showCurListInfo(tag: String) {
val allList = mViewPagerAdapter.getCurrentList()
var allInfos = tag + " Total= ${allList.size}\n"
allList.forEach {
allInfos += (it.id + " / ")
}
if (BuildConfig.DEBUG) {
val allList = mViewPagerAdapter.getCurrentList()
var allInfos = tag + " Total= ${allList.size}\n"
allList.forEach {
allInfos += (it.id + " / ")
}
Log.e("hahah", allInfos)
Log.e("hahah", allInfos)
}
}
override fun onResume() {