Skip to content

Commit 7695269

Browse files
committed
fix invisible issue
1 parent ad614a2 commit 7695269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ private static void openKeyboardOnUiThread(int index) {
425425
Cocos2dxEditBox editBox = mEditBoxArray.get(index);
426426
if (null != editBox) {
427427
editBox.requestFocus();
428+
mCocos2dxActivity.getGLSurfaceView().requestLayout();
428429
imm.showSoftInput(editBox, 0);
429430
mCocos2dxActivity.getGLSurfaceView().setSoftKeyboardShown(true);
430431
}

0 commit comments

Comments
 (0)