mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-27 14:33:00 +00:00
android: Prevent showing games on an invalid view
This commit is contained in:
parent
b0a434b99f
commit
ec048361af
|
@ -75,6 +75,9 @@ class PlatformGamesFragment : Fragment(), PlatformGamesView {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun showGames(games: Cursor) {
|
override fun showGames(games: Cursor) {
|
||||||
|
if (_binding == null)
|
||||||
|
return
|
||||||
|
|
||||||
if (binding.gridGames.adapter != null) {
|
if (binding.gridGames.adapter != null) {
|
||||||
(binding.gridGames.adapter as GameAdapter).swapCursor(games)
|
(binding.gridGames.adapter as GameAdapter).swapCursor(games)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue