summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-04-01 03:55:08 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:48 +0200
commit8b99a1e49b62c62bc8f8953ed630c1f36fa74c22 (patch)
tree9a1cb4547f362c16d85f70b7b22bf56c48b0acc5
parentandroid: Convert keyboard applet to kotlin and refactor (diff)
downloadyuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar.gz
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar.bz2
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar.lz
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar.xz
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar.zst
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
index 3f6f39dff..edc1a19ff 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
@@ -229,7 +229,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
val SPEED = 3
perfStatsUpdater = {
val perfStats = NativeLibrary.GetPerfStats()
- if (perfStats[FPS] > 0) {
+ if (perfStats[FPS] > 0 && _binding != null) {
binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS])
}