mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-16 12:17:26 +01:00
android: Do not update FPS text on null view
This commit is contained in:
1 parent
03275e4114
commit
8c40cdbb5c
1 file changed
+1
-1
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user