Android: End emulation activity if not valid on returning

This commit is contained in:
Connor McLaughlin 2020-11-07 22:45:49 +10:00
parent 385c8c5dc3
commit 0c9c66bf81
1 changed files with 1 additions and 2 deletions

View File

@ -235,9 +235,8 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (!AndroidHostInterface.hasInstanceAndEmulationThreadIsRunning()) {
if (!checkActivityIsValid()) {
// we must've got killed off in the background :(
finish();
return;
}