Skip to content

Commit

Permalink
Merge pull request cocos2d#5320 from seagullua/Android_FlickerFix
Browse files Browse the repository at this point in the history
closed cocos2d#3987: Screen will be flickering when switching to a new activity.
  • Loading branch information
James Chen committed Feb 11, 2014
2 parents 5969db3 + 78d2c97 commit 1c8fd8f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ public void setCocos2dxEditText(final Cocos2dxEditText pCocos2dxEditText) {
@Override
public void onResume() {
super.onResume();


this.setRenderMode(RENDERMODE_CONTINUOUSLY);

this.queueEvent(new Runnable() {
@Override
public void run() {
Expand All @@ -175,7 +177,9 @@ public void run() {
Cocos2dxGLSurfaceView.this.mCocos2dxRenderer.handleOnPause();
}
});


this.setRenderMode(RENDERMODE_WHEN_DIRTY);

//super.onPause();
}

Expand Down

0 comments on commit 1c8fd8f

Please sign in to comment.