Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20037] Wrong Ti.Android.currentActivity in `open` handler

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-08-30T17:32:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labelsn/a
ReporterAndrey Tkachenko
AssigneeYordan Banev
Created2015-10-19T11:24:52.000+0000
Updated2017-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);
}

Comments

  1. Yordan Banev 2017-05-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/9071
  2. Samir Mohammed 2017-06-12

    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
  3. Hans Knöchel 2017-08-30

    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.
  4. Gary Mathews 2017-08-30

    master: https://github.com/appcelerator/titanium_mobile/pull/9371
  5. Gary Mathews 2017-08-30

    6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9372
  6. Abir Mukherjee 2017-08-30

    FR passed. PRs merged. Changes seen in SDKs: 6.2.0.v20170830105311 7.0.0.v20170830105203

JSON Source