Merge pull request #7540 from zackhow/land

Android: don't try to pause emulation when not running
This commit is contained in:
Pierre Bourdon 2018-11-03 05:22:52 +01:00 committed by GitHub
commit 0d00e6225b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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