mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-25 23:05:29 +03:00
parent
24d4f5e3cd
commit
96c5b94429
@ -370,10 +370,8 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
|
||||
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
fun resumeEmulator() {
|
||||
if (!isEmulatorPaused) return
|
||||
gameSurface?.let { setSurface(it) }
|
||||
if (!emulationSettings.isAudioOutputDisabled)
|
||||
changeAudioStatus(true)
|
||||
changeAudioStatus(!emulationSettings.isAudioOutputDisabled)
|
||||
isEmulatorPaused = false
|
||||
}
|
||||
|
||||
@ -401,6 +399,8 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
|
||||
|
||||
resumeEmulator()
|
||||
|
||||
GpuDriverHelper.forceMaxGpuClocks(emulationSettings.forceMaxGpuClocks)
|
||||
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
|
||||
@Suppress("DEPRECATION")
|
||||
window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
|
Loading…
Reference in New Issue
Block a user