[TIMOB-2493] Android: expose Window.activity
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M05 |
Components | Android |
Labels | activity, android, feature |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:21:11.000+0000 |
Updated | 2011-04-17T01:59:15.000+0000 |
Description
Allow users to pre-fill the activity proxy before it's created so the associated option menu is easier to handle programmatically.
This should have gone in M05 to start with. It was found on Friday.
(from [2aa4de85145ff669ec7a8574a301d61a09c2fa5c]) callSync/callAsync now accept an optional TiContext argument when the calling thread doesn't have an assoicated TiContext. Users can now pre-seed the onPrepareOptionsMenu and onCreateOptionsMenu callback in any Titanium window proxy by using the "activity" property in the creation object. TiBaseActivity now passes the ActivityProxy's context when calling onPrepare/onCreate menu methods. [#2493 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/2aa4de85145ff669ec7a8574a301d61a09c2fa5c"> https://github.com/appcelerator/titanium_mobile/commit/2aa4de85145f...
We need to actually pre-fill the proxy instead of creating it on demand in TiUIWindow, reopening
(from [b44bd9d3b29569923ac9dc614fde51cd379d986c]) the window's activity proxy is now lazily created, and can be accessed immediately after createWindow or pre-filled using "activity" key in
[#2493 state:fixed-in-qa] createWindow.
https://github.com/appcelerator/titanium_mobile/commit/b44bd9d3b29569923ac9dc614fde51cd379d986c"> https://github.com/appcelerator/titanium_mobile/commit/b44bd9d3b295...
pass Titanium SDK version: 1.5.0 (12/07/10 10:00 8f4eea3...), bugTest, Android Sim 1.6/2.1