[TIMOB-20037] Wrong Ti.Android.currentActivity in `open` handler
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-08-30T17:32:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.2.0 |
Components | Android |
Labels | n/a |
Reporter | Andrey Tkachenko |
Assignee | Yordan Banev |
Created | 2015-10-19T11:24:52.000+0000 |
Updated | 2017-08-30T18:48:15.000+0000 |
Description
currentActivity must be same with current window activity but it correspond to root app activity.
function windowOpened(evt) {
Ti.API.debug('Main window opened', evt.source.getActivity() === Ti.Android.currentActivity);
}
PR: https://github.com/appcelerator/titanium_mobile/pull/9071
Verified fix in SDK version 6.2.0.v20170612114319. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/9071
Reopening since it causes an issue in TIMOB-25206 where some modules that use the old static method will now fail. We need to find a different way to address this issue.
master: https://github.com/appcelerator/titanium_mobile/pull/9371
6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9372
FR passed. PRs merged. Changes seen in SDKs: 6.2.0.v20170830105311 7.0.0.v20170830105203