From 515d841d7aa85fd15b29b9ec5fef17f6dfab370e Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Fri, 15 Sep 2023 04:07:10 +0200 Subject: [PATCH] early-access version 3870 --- README.md | 2 +- .../src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eeffe7d58..fd9a1e53c 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3869. +This is the source code for early-access 3870. ## Legal Notice diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt index 35e365458..805b89b31 100755 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt @@ -93,12 +93,12 @@ class GamesFragment : Fragment() { viewLifecycleOwner.lifecycleScope.apply { launch { - repeatOnLifecycle(Lifecycle.State.CREATED) { + repeatOnLifecycle(Lifecycle.State.RESUMED) { gamesViewModel.isReloading.collect { binding.swipeRefresh.isRefreshing = it } } } launch { - repeatOnLifecycle(Lifecycle.State.CREATED) { + repeatOnLifecycle(Lifecycle.State.RESUMED) { gamesViewModel.games.collect { (binding.gridGames.adapter as GameAdapter).submitList(it) if (it.isEmpty()) { @@ -110,7 +110,7 @@ class GamesFragment : Fragment() { } } launch { - repeatOnLifecycle(Lifecycle.State.CREATED) { + repeatOnLifecycle(Lifecycle.State.RESUMED) { gamesViewModel.shouldSwapData.collect { if (it) { (binding.gridGames.adapter as GameAdapter).submitList( @@ -122,7 +122,7 @@ class GamesFragment : Fragment() { } } launch { - repeatOnLifecycle(Lifecycle.State.CREATED) { + repeatOnLifecycle(Lifecycle.State.RESUMED) { gamesViewModel.shouldScrollToTop.collect { if (it) { scrollToTop()