Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2506] Android: Kroll.call() Needs Synchronous Mode

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:17.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M05
ComponentsAndroid
Labelsandroid, feature
ReporterDon Thorp
AssigneeMarshall Culpepper
Created2011-04-15T03:21:29.000+0000
Updated2011-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.

Comments

  1. Marshall Culpepper 2011-04-15

    (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...

  2. Don Thorp 2011-04-15

    I can verify that it works for menu. Will move my test over to bugtest soon.

  3. Ralf Pfeiffer 2011-04-15

    G1 (1.6) G2 (2.2) RC2

JSON Source