Commit 76568b1
Oskari Leppäaho
Fix a deadlock, GetNativeText no longer works
We used to get a deadlock when Unity was listening to the
NativeEditBox.returnPressed event and called SetFocusNative on another
NativeEditBox on that event, which resulted in a TextEndEdit message to
be sent to Unity (which never arrived on Unity side). Not 100 % sure why
that was the case, but removing the waiting for EditBox.processRecvJsonMsg
results in SendUnityMsgToPlugin seems to solve the issue.
As we don’t wait for the result anymore, we can’t return a message to Unity.
Fortunately that was only used for the NativeEditBox.GetTextNative() method,
which isn’t necessary because we update the Unity InputField text when the
native text is changed.1 parent 1f58a67 commit 76568b1
4 files changed
Lines changed: 8 additions & 29 deletions
File tree
- release/NativeEditPlugin
- Plugins/Android
- scripts
- src/androidProj/nativeeditplugin/src/main/java/com/bkmin/android
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
| |||
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| 315 | + | |
311 | 316 | | |
312 | 317 | | |
313 | 318 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 140 | | |
147 | 141 | | |
148 | 142 | | |
| |||
Lines changed: 3 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 129 | + | |
134 | 130 | | |
135 | 131 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 132 | + | |
| 133 | + | |
154 | 134 | | |
155 | 135 | | |
0 commit comments