[TIMOB-2506] Android: Kroll.call() Needs Synchronous Mode
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M05 |
Components | Android |
Labels | android, feature |
Reporter | Don Thorp |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:21:29.000+0000 |
Updated | 2011-04-17T01:59:17.000+0000 |
Description
in activity.onCreateOptionsMenu and activity.onPrepareOptionsMenu I found a race condition with the current call(). We need to be able to wait on the callable to finish so the menu is configured properly.
Note: On emulator/device it is most obvious because you have to click the menu button twice to get it to appear sometimes.
(from [a6b6536e2483fff3b7fc63d6612ba8337db8833b]) KrollCallback now has two entry points: callSync and callAsync [#2506 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/a6b6536e2483fff3b7fc63d6612ba8337db8833b"> https://github.com/appcelerator/titanium_mobile/commit/a6b6536e2483...
I can verify that it works for menu. Will move my test over to bugtest soon.
G1 (1.6) G2 (2.2) RC2