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 committed 2021-09-21 16:33:57 +02:00
1 parent 446e2d9119
commit 3eb07e9772
2 files changed
+20 -1

No files matched your search

@@ -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()