Browse Source

android: Prevent updating empty game list text on invalid view

nce_cpp
Charles Lombardo 3 years ago
committed by bunnei
parent
commit
8962c3456f
  1. 3
      src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt

3
src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt

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

Loading…
Cancel
Save