diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-09-15 02:02:48 +0200 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-09-15 02:02:48 +0200 |
commit | b39438917015430bdefe21f352f41bcad2d9d397 (patch) | |
tree | 9e984b7c0da0736f843e967edcba5aa9b41ab61c /src/android/app | |
parent | Merge pull request #11425 from t895/stateflows (diff) | |
download | yuzu-b39438917015430bdefe21f352f41bcad2d9d397.tar yuzu-b39438917015430bdefe21f352f41bcad2d9d397.tar.gz yuzu-b39438917015430bdefe21f352f41bcad2d9d397.tar.bz2 yuzu-b39438917015430bdefe21f352f41bcad2d9d397.tar.lz yuzu-b39438917015430bdefe21f352f41bcad2d9d397.tar.xz yuzu-b39438917015430bdefe21f352f41bcad2d9d397.tar.zst yuzu-b39438917015430bdefe21f352f41bcad2d9d397.zip |
Diffstat (limited to 'src/android/app')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt | 8 |
1 files changed, 4 insertions, 4 deletions
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 100644 --- 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() |