mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-02 15:45:42 -04:00
Android: End emulation activity if not valid on returning
This commit is contained in:
parent
8f74d4718f
commit
b2c8e9e31e
@ -235,9 +235,8 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
|
|||||||
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
|
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
|
|
||||||
if (!AndroidHostInterface.hasInstanceAndEmulationThreadIsRunning()) {
|
if (!checkActivityIsValid()) {
|
||||||
// we must've got killed off in the background :(
|
// we must've got killed off in the background :(
|
||||||
finish();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user