mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-16 12:17:26 +01:00
android: Prevent showing games on an invalid view
This commit is contained in:
1 parent
a8834fa20c
commit
4a06d464ff
1 file changed
+3
@@ -75,6 +75,9 @@ class PlatformGamesFragment : Fragment(), PlatformGamesView {
|
||||
}
|
||||
|
||||
override fun showGames(games: Cursor) {
|
||||
if (_binding == null)
|
||||
return
|
||||
|
||||
if (binding.gridGames.adapter != null) {
|
||||
(binding.gridGames.adapter as GameAdapter).swapCursor(games)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user