{ "id": "63695", "key": "TIMOB-3063", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-08-30T16:02:46.000+0000", "created": "2011-04-15T03:35:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [], "issuelinks": [ { "id": "20467", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:32:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Hi. I'm using Android APIs 2.2 and Titanium 1.5.1.

\r\n

I'm trying to implement a menu button which fires an event to\r\nthe current window (i.e. Window A) on click. This window also\r\ncontains a button which opens another modal window (i.e. Window B).\r\nI can only access Window B from Window A.

\r\n

When I open Window B (the modal window) first, and then hit the\r\nback button to go back to window A, Ti.UI.currentWindow points\r\ntowards the modal window, Window B instead of Window A. I fired an\r\nevent from the menu button click, and this event was caught by the\r\nmodal window instead of the window which I am currently in (after\r\npressing the back-button).

\r\n

Here is some code to try out:

\r\n

app.js: http://pastie.org/1535949

\r\n

winA.js: http://pastie.org/1535954

\r\n

winB.js: http://pastie.org/1535956

{html}", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.currentWindow not respected on back button click (Android)", "creator": { "name": "z3nd", "key": "z3nd", "displayName": "z3nd", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "z3nd", "key": "z3nd", "displayName": "z3nd", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129961", "author": { "name": "mario", "key": "mario", "displayName": "Mario", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hi, I'm using android APIs 2.2 and Titanium 1.6.

\n

I noticed similar problems.
\nThe Ti.UI.currentWindow, Ti.UI.currentTab and Ti.UI.currentTabGroup\nare not updated when using the back key on my HTC desire.

\n

Best regards,

\n

Mario

{html}", "updateAuthor": { "name": "mario", "key": "mario", "displayName": "Mario", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:51.000+0000", "updated": "2011-04-15T03:35:51.000+0000" }, { "id": "217080", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120830102513, unable to reproduce the issue. \r\nThe app seems to fire the correct event (window A).\r\n\r\nTicket marked as resolved. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-30T16:02:46.000+0000", "updated": "2012-08-30T16:02:46.000+0000" }, { "id": "414587", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:32:44.000+0000", "updated": "2017-03-21T22:32:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }