mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-27 16:45:30 +03:00
No use assigning null surface if null already
This also prevents any possibility a null value is falsely assigned to a valid surface for whatever reason.
This commit is contained in:
parent
95a679e5cd
commit
df96d74ca1
@ -411,7 +411,7 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
|
||||
// Perfectly acceptable and should be ignored
|
||||
}
|
||||
|
||||
setSurface(gameSurface)
|
||||
gameSurface?.let { setSurface(it) }
|
||||
|
||||
if (!emulationSettings.isAudioOutputDisabled)
|
||||
changeAudioStatus(true)
|
||||
|
Loading…
Reference in New Issue
Block a user