diff options
| author | 2023-04-23 18:46:42 -0400 | |
|---|---|---|
| committer | 2023-06-03 00:05:54 -0700 | |
| commit | 62c47011a01208ff18fd69ff85c8313290ad7082 (patch) | |
| tree | 9516bc16eb55a4a577542f0cc82d98371fe6f4f1 /src/android | |
| parent | android: Add black backgrounds toggle (diff) | |
| download | yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar.gz yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.tar.xz yuzu-62c47011a01208ff18fd69ff85c8313290ad7082.zip | |
android: Prevent situation where binding is called on a null view
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt | 3 |
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() { | |||
| 140 | 140 | ||
| 141 | // Make sure the loading indicator appears even if the layout is told to refresh before being fully drawn | 141 | // Make sure the loading indicator appears even if the layout is told to refresh before being fully drawn |
| 142 | binding.swipeRefresh.post { | 142 | binding.swipeRefresh.post { |
| 143 | if (_binding == null) { | ||
| 144 | return@post | ||
| 145 | } | ||
| 143 | binding.swipeRefresh.isRefreshing = gamesViewModel.isReloading.value!! | 146 | binding.swipeRefresh.isRefreshing = gamesViewModel.isReloading.value!! |
| 144 | } | 147 | } |
| 145 | } | 148 | } |