mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 07:30:07 +00:00
android: Do not update FPS text on null view
This commit is contained in:
parent
d30103b69f
commit
8b99a1e49b
@ -229,7 +229,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
|
|||||||
val SPEED = 3
|
val SPEED = 3
|
||||||
perfStatsUpdater = {
|
perfStatsUpdater = {
|
||||||
val perfStats = NativeLibrary.GetPerfStats()
|
val perfStats = NativeLibrary.GetPerfStats()
|
||||||
if (perfStats[FPS] > 0) {
|
if (perfStats[FPS] > 0 && _binding != null) {
|
||||||
binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS])
|
binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user