Black screen on cocos2dx 2.2.3 android game with Facebook SDK

Hi, I got a problem when i used Facebook SDK on my cocos2dx game. The situation is:

I clicked a login button to do facebook login, then it would launch the facebook app. Before facebook completed the login request, i clicked the physic back button to cancel the login request and returned to the game screen, but then the game screen was black.

From the logcat, I saw the onResume was called after onWindowFocusChanged. It caused cocos2dxActivity did not call resumeGame. I thought that might be the reason why the screen was black. Because once i clicked the physic back button to trigger the onWindowFocusChanged again, the screen worked well then.

I can do resumeGame on onResume always on Cocos2dxActivity to fixed the problem. But I don’t want to change Cocox2dxActivity since i think the cocos2dx authors must have some reasons to implement like this and maybe I just miss some information about the logic. So can anybody give me some suggestions? any reply is appreciated. thanks.