From fa18c550ed30dd90e16c60e2a84490be10f55df8 Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Thu, 15 Jan 2026 14:31:34 +0800 Subject: [PATCH] =?UTF-8?q?homefrag=20flag=20=E8=AE=BE=E7=BD=AE1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vididin/main/fragments/HomeFragment.kt | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/gamedog/vididin/main/fragments/HomeFragment.kt b/app/src/main/java/com/gamedog/vididin/main/fragments/HomeFragment.kt index 602405c..16499c2 100644 --- a/app/src/main/java/com/gamedog/vididin/main/fragments/HomeFragment.kt +++ b/app/src/main/java/com/gamedog/vididin/main/fragments/HomeFragment.kt @@ -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(), 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() {