Merge pull request #71 from c4games/sync-v3-pull-19256

Sync v3 pr-19256
This commit is contained in:
HALX99 2020-02-24 19:52:22 +08:00 committed by GitHub
commit b350a7abf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -280,6 +280,7 @@ public abstract class Cocos2dxActivity extends Activity implements Cocos2dxHelpe
// Cocos2dxGLSurfaceView
this.mGLSurfaceView = this.onCreateView();
this.mGLSurfaceView.setPreserveEGLContextOnPause(true);
// ...add to FrameLayout
mFrameLayout.addView(this.mGLSurfaceView);

View File

@ -199,7 +199,7 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView {
}
});
this.setRenderMode(RENDERMODE_WHEN_DIRTY);
//super.onPause();
super.onPause();
}
@Override