1
0
Fork 0
forked from suyu/suyu

android: Prevent updating empty game list text on invalid view

This commit is contained in:
Charles Lombardo 2023-03-23 08:54:16 -04:00 committed by bunnei
parent 295ffd4d47
commit 9cb7e7072d

View file

@ -99,6 +99,9 @@ class PlatformGamesFragment : Fragment(), PlatformGamesView {
}
private fun updateTextView() {
if (_binding == null)
return
binding.gamelistEmptyText.visibility =
if (adapter!!.itemCount == 0) View.VISIBLE else View.GONE
}