Android: don't try to pause emulation when not running

Forcing landscape at emulation start revealed a bug where if the activity was
recreated before emulation started then it would get stuck in a paused state.

Original commit by zackhow for Dolphin-emu.
This commit is contained in:
FearlessTobi 2020-03-28 20:39:25 +01:00 committed by bunnei
parent 8a4c9934d9
commit 70431dc86f

View File

@ -127,7 +127,8 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
directoryStateReceiver = null;
}
mEmulationState.pause();
if (mEmulationState.isRunning())
mEmulationState.pause();
super.onPause();
}