cocos2d-x
cocos2d-x copied to clipboard
[Android] Edit boxes inoperable after GL Context recreated
trafficstars
- cocos2d-x version: cocos2d-x-3.17.1
- devices test on: Samsung Galaxy S10+
- developing environments
- NDK version: android-ndk-r20b
- Xcode version: N/A
- VS version: N/A
- browser type and version: N/A
Steps to Reproduce:
- Build cpp-tests for Android
- Browse to the EditBox tests (52: Node: UI > 1: GUI Dynamic Create Test > 3: EditBox Test
- Type some text in any of the three edit boxes
- Trigger GL context lost (easiest way to do this IMO is to change the System Font Size. You can also trigger it by attaching Layout Inspector in Android Studio)
- Return to the cpp-tests app
- Notice that edit boxes are all inoperable
Attachment:
https://user-images.githubusercontent.com/6953200/120675204-1abeb400-c452-11eb-9a22-8609d8a14cda.mov