Android: Don't rely on onPause for pausing before destroying surface

Fixes a crash which was uncovered (or just made more likely?)
by the previous commit.
This commit is contained in:
JosJuice
2021-08-08 16:22:52 +02:00
parent 446e2d9119
commit 3eb07e9772
2 changed files with 20 additions and 1 deletions

View File

@ -186,6 +186,7 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
{
Log.debug("[EmulationFragment] Surface destroyed.");
NativeLibrary.SurfaceDestroyed();
mRunWhenSurfaceIsValid = true;
}
public void stopEmulation()