summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-04-24 00:46:42 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:54 +0200
commit62c47011a01208ff18fd69ff85c8313290ad7082 (patch)
tree9516bc16eb55a4a577542f0cc82d98371fe6f4f1 /src/android/app
parentandroid: Add black backgrounds toggle (diff)
downloadyuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar
yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar.gz
yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar.bz2
yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar.lz
yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar.xz
yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar.zst
yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt3
1 files changed, 3 insertions, 0 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 759ff18fc..fb8c0fd32 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
@@ -140,6 +140,9 @@ class GamesFragment : Fragment() {
// Make sure the loading indicator appears even if the layout is told to refresh before being fully drawn
binding.swipeRefresh.post {
+ if (_binding == null) {
+ return@post
+ }
binding.swipeRefresh.isRefreshing = gamesViewModel.isReloading.value!!
}
}