mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 15:52:51 +00:00
android: Prevent situation where binding is called on a null view
This commit is contained in:
parent
d7178ed16e
commit
62c47011a0
|
@ -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
|
// Make sure the loading indicator appears even if the layout is told to refresh before being fully drawn
|
||||||
binding.swipeRefresh.post {
|
binding.swipeRefresh.post {
|
||||||
|
if (_binding == null) {
|
||||||
|
return@post
|
||||||
|
}
|
||||||
binding.swipeRefresh.isRefreshing = gamesViewModel.isReloading.value!!
|
binding.swipeRefresh.isRefreshing = gamesViewModel.isReloading.value!!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue