mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 19:05:45 +00:00
android: Prevent showing games on an invalid view
This commit is contained in:
parent
a8834fa20c
commit
4a06d464ff
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue