Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 16a8107

Browse files
committed
[[ Bug 22914 ]] Call doProcess in updateKeyboardVisible
This patch adds a call to `doProcess` to `updateKeyboardVisible` so that we yield to the engine thread after sending the `keyboardActivated` or `keyboardDeactivated` messages. This ensures the yield to android thread in `wait` is broken.
1 parent 38790fc commit 16a8107

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/notes/bugfix-22914.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix `keyboardActivated` and `keyboardDeactivated` not breaking `wait for messages` on Android.

engine/src/java/com/runrev/android/Engine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,10 @@ void updateKeyboardVisible()
15571557
doKeyboardHidden();
15581558

15591559
m_keyboard_sizechange = true;
1560+
1561+
// Make sure we trigger handling
1562+
if (m_wake_on_event)
1563+
doProcess(false);
15601564
}
15611565

15621566
void updateOrientation(int p_orientation)

0 commit comments

Comments
 (0)