mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00: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:
committed by
Billy Laws
parent
95a679e5cd
commit
df96d74ca1
@ -411,7 +411,7 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
|
|||||||
// Perfectly acceptable and should be ignored
|
// Perfectly acceptable and should be ignored
|
||||||
}
|
}
|
||||||
|
|
||||||
setSurface(gameSurface)
|
gameSurface?.let { setSurface(it) }
|
||||||
|
|
||||||
if (!emulationSettings.isAudioOutputDisabled)
|
if (!emulationSettings.isAudioOutputDisabled)
|
||||||
changeAudioStatus(true)
|
changeAudioStatus(true)
|
||||||
|
Reference in New Issue
Block a user