mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 12:45:46 +00:00
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
This commit is contained in:
parent
22ddd11573
commit
50da284060
@ -146,7 +146,8 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
|||||||
directoryStateReceiver = null;
|
directoryStateReceiver = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
mEmulationState.pause();
|
if (mEmulationState.isRunning())
|
||||||
|
mEmulationState.pause();
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user