1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-27 06:26:32 -05:00

android: Prevent showing games on an invalid view

This commit is contained in:
Charles Lombardo
2023-03-28 19:41:51 -04:00
committed by bunnei
parent b0a434b99f
commit ec048361af

View File

@@ -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)
}