summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-03-31 21:55:08 -0400
committerGravatar bunnei2023-06-03 00:05:48 -0700
commit8b99a1e49b62c62bc8f8953ed630c1f36fa74c22 (patch)
tree9a1cb4547f362c16d85f70b7b22bf56c48b0acc5 /src/android
parentandroid: Convert keyboard applet to kotlin and refactor (diff)
downloadyuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar.gz
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.tar.xz
yuzu-8b99a1e49b62c62bc8f8953ed630c1f36fa74c22.zip
android: Do not update FPS text on null view
Diffstat (limited to 'src/android')
-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
229 val SPEED = 3 229 val SPEED = 3
230 perfStatsUpdater = { 230 perfStatsUpdater = {
231 val perfStats = NativeLibrary.GetPerfStats() 231 val perfStats = NativeLibrary.GetPerfStats()
232 if (perfStats[FPS] > 0) { 232 if (perfStats[FPS] > 0 && _binding != null) {
233 binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS]) 233 binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS])
234 } 234 }
235 235