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,17 +272,21 @@ 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)
showCurListInfo("------- after ---------") lifecycleScope.launch {
showCurListInfo("------- after ---------")
}
} }
private fun showCurListInfo(tag: String) { private fun showCurListInfo(tag: String) {
val allList = mViewPagerAdapter.getCurrentList() if (BuildConfig.DEBUG) {
var allInfos = tag + " Total= ${allList.size}\n" val allList = mViewPagerAdapter.getCurrentList()
allList.forEach { var allInfos = tag + " Total= ${allList.size}\n"
allInfos += (it.id + " / ") allList.forEach {
} allInfos += (it.id + " / ")
}
Log.e("hahah", allInfos) Log.e("hahah", allInfos)
}
} }
override fun onResume() { override fun onResume() {