mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-17 20:58:25 +01:00
android: Prevent situation where binding is called on a null view
This commit is contained in:
1 parent
744ec1961c
commit
a38c9d2651
1 file changed
+3
@@ -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!!
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user