Skip to content

Commit

Permalink
Android: don't try to pause emulation when not running
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zackhow committed Nov 3, 2018
1 parent 22ddd11 commit 50da284
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public void onPause()
directoryStateReceiver = null; directoryStateReceiver = null;
} }


mEmulationState.pause(); if (mEmulationState.isRunning())
mEmulationState.pause();
super.onPause(); super.onPause();
} }


Expand Down

0 comments on commit 50da284

Please sign in to comment.