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