Skip to content

Commit b350a7a

Browse files
authored
Merge pull request #71 from c4games/sync-v3-pull-19256
Sync v3 pr-19256
2 parents 0c291dd + f5eac1e commit b350a7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ public void init() {
280280

281281
// Cocos2dxGLSurfaceView
282282
this.mGLSurfaceView = this.onCreateView();
283+
this.mGLSurfaceView.setPreserveEGLContextOnPause(true);
283284

284285
// ...add to FrameLayout
285286
mFrameLayout.addView(this.mGLSurfaceView);

cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxGLSurfaceView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public void run() {
199199
}
200200
});
201201
this.setRenderMode(RENDERMODE_WHEN_DIRTY);
202-
//super.onPause();
202+
super.onPause();
203203
}
204204

205205
@Override

0 commit comments

Comments
 (0)