mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 13:37:57 -05:00
android: Prevent showing games on an invalid view
This commit is contained in:
@ -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