Open GoogleCodeExporter opened 8 years ago
Hi!
I managed to "get rid" of this problem by changing a line in the
org.cocos2d.opengl.GLSurfaceView.GLThread.onWindowFocusChanged() method (in
GLSurfaceView.java):
public void onWindowFocusChanged(boolean hasFocus) {
synchronized(sGLThreadManager) {
mHasFocus = true; //hasFocus; <------------ THIS LINE
sGLThreadManager.notifyAll();
}
if (LOG_SURFACE) {
Log.i("Main thread", "Focus " + (mHasFocus ? "gained" : "lost"));
}
}
***WARNING*** I tested it only on Samsung Galaxy Tab (as my app is designed to
run exclusively on this device), and it seems to work for me. Be warned that
this may have side effects on other devices, or in other cases of use...
Vincent
Original comment by chere.lo...@gmail.com
on 28 Feb 2012 at 2:04
Hi,
Thanks for the replay. i will do changes according this and do testing in other
device also.
Original comment by jaiminme...@gmail.com
on 29 Feb 2012 at 7:24
Original issue reported on code.google.com by
jaiminme...@gmail.com
on 5 Dec 2011 at 11:32