diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-04-01 03:55:08 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:48 +0200 |
commit | 8b99a1e49b62c62bc8f8953ed630c1f36fa74c22 (patch) | |
tree | 9a1cb4547f362c16d85f70b7b22bf56c48b0acc5 /src/android | |
parent | android: Convert keyboard applet to kotlin and refactor (diff) | |
download | yuzu-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 |
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt | 2 |
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]) } |