mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-06-14 18:19:28 +02:00
android: Prevent updating empty game list text on invalid view
This commit is contained in:
parent
295ffd4d47
commit
9cb7e7072d
@ -99,6 +99,9 @@ class PlatformGamesFragment : Fragment(), PlatformGamesView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateTextView() {
|
private fun updateTextView() {
|
||||||
|
if (_binding == null)
|
||||||
|
return
|
||||||
|
|
||||||
binding.gamelistEmptyText.visibility =
|
binding.gamelistEmptyText.visibility =
|
||||||
if (adapter!!.itemCount == 0) View.VISIBLE else View.GONE
|
if (adapter!!.itemCount == 0) View.VISIBLE else View.GONE
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user