Fixed crash if mSurface isn't set up when we pause the application
parent
81f7e0c1f7
commit
45536710f3
|
@ -354,6 +354,7 @@ public class SDLActivity extends Activity {
|
||||||
// Try a transition to paused state
|
// Try a transition to paused state
|
||||||
if (mNextNativeState == NativeState.PAUSED) {
|
if (mNextNativeState == NativeState.PAUSED) {
|
||||||
nativePause();
|
nativePause();
|
||||||
|
if (mSurface != null)
|
||||||
mSurface.handlePause();
|
mSurface.handlePause();
|
||||||
mCurrentNativeState = mNextNativeState;
|
mCurrentNativeState = mNextNativeState;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue