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:
Abandoned Cart 2023-02-15 12:32:21 -05:00 committed by Billy Laws
parent 95a679e5cd
commit df96d74ca1
1 changed files with 1 additions and 1 deletions

View File

@ -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)