{
"id": "118866",
"key": "AC-2368",
"fields": {
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
},
"project": {
"id": "12217",
"key": "AC",
"name": "Appcelerator - INBOX",
"projectCategory": {
"id": "10000",
"description": "",
"name": "Customer Service"
}
},
"resolution": {
"id": "3",
"description": "The problem is a duplicate of an existing issue.",
"name": "Duplicate"
},
"resolutiondate": "2013-08-28T21:46:07.000+0000",
"created": "2013-08-21T17:02:10.000+0000",
"labels": [
"3.1.1",
"3.1.2",
"actionbar",
"android"
],
"versions": [],
"issuelinks": [
{
"id": "31454",
"type": {
"id": "10002",
"name": "Duplicate",
"inward": "is duplicated by",
"outward": "duplicates"
},
"outwardIssue": {
"id": "118720",
"key": "TIMOB-14914",
"fields": {
"summary": "Android: SDK 3.1.2.GA breaks ActionBar",
"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": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
},
{
"id": "31256",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"outwardIssue": {
"id": "118720",
"key": "TIMOB-14914",
"fields": {
"summary": "Android: SDK 3.1.2.GA breaks ActionBar",
"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": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
}
],
"assignee": {
"name": "mpmiranda",
"key": "mpmiranda",
"displayName": "Mauro Parra-Miranda",
"active": true,
"timeZone": "America/Mexico_City"
},
"updated": "2016-03-08T07:41:23.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": "14548",
"name": "Titanium SDK & CLI",
"description": "Please enter tickets related to the MobileSDK here."
}
],
"description": "Setting a handler for onHomeIconItemSelected on Android 4.3 has no effect - the home area is highlighted when clicked, but the handler doesn't trigger. This is not a regression of the Ti SDK, buggy on 3.1.1 too. Note that my tiapp.xml is within the specified Titanium compatibility matrix:\r\n{code:xml}\r\n\r\n 17\r\n \r\n \r\n \r\n\r\n{code}\r\nTest application attached.\r\n\r\nHere is the faulting code:\r\n\r\n*win2.xml*\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*win2.js*\r\n{code:javascript}\r\nfunction closeMe() {\r\n // this handler doesn't get called on Android 4.3\r\n $.win2.close();\r\n}\r\n\r\n$.win2.addEventListener('open', function() {\r\n\tif (OS_ANDROID) {\r\n\t\tvar activity = $.win2.getActivity();\r\n\t\tvar actionBar = activity.actionBar;\r\n\t\t\tif (actionBar){\r\n\t\t\t\tactionBar.title = 'Click to my left :)';\r\n\t\t\t\tactionBar.displayHomeAsUp = true;\r\n\t\t\t\tactionBar.onHomeIconItemSelected = closeMe;\r\n\t\t\t}\r\n\t}\r\n});\r\n{code}\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*index.js*\r\n{code:javascript}\r\nfunction doClick(e) { \r\n Alloy.createController('win2').getView().open();\r\n}\r\n\r\n$.index.open();\r\n{code}",
"attachment": [
{
"id": "41767",
"filename": "upButtonBug.zip",
"author": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"created": "2013-08-21T17:02:10.000+0000",
"size": 10317841,
"mimeType": "application/zip"
}
],
"flagged": false,
"summary": "Android: ActionBar not ready at window open event on API 18 (Android 4.3)",
"creator": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"subtasks": [],
"reporter": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"environment": "SDK 3.1.1.GA, 3.1.2.GA, buggy on Android 4.3 phone as well as x86 emulator.\r\nWorks fine on API 15 and 16 devices (did not test API 17).",
"comment": {
"comments": [
{
"id": "267529",
"author": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"body": "It's a timing issue with getting activity.actionBar. If I wrap that with with a short timeout (i.e. setTimeout(function() {var actionBar = activity.actionBar;........ then the issue goes away. However - if I delay just the following ActionBar manipulation code the issue persists. BTW - I am now also seeing occasional crashes with ActionBar on API 18 (SDK 3.1.1.GA - not even bothering with 3.1.2.GA since it is much flakier) - \"ActionBarImpl can only be used with a compatible window decor layout, source: var actionBar = activity.actionBar\". Have never seen this with earlier API levels.",
"updateAuthor": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"created": "2013-08-21T20:43:40.000+0000",
"updated": "2013-08-21T20:43:40.000+0000"
},
{
"id": "267589",
"author": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"body": "If I hook on focus event instead of open - it works.",
"updateAuthor": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"created": "2013-08-22T09:08:35.000+0000",
"updated": "2013-08-22T09:08:35.000+0000"
},
{
"id": "268735",
"author": {
"name": "hpham",
"key": "hpham",
"displayName": "Hieu Pham",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updateAuthor": {
"name": "hpham",
"key": "hpham",
"displayName": "Hieu Pham",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-08-28T21:46:07.000+0000",
"updated": "2013-08-28T21:46:07.000+0000"
},
{
"id": "268794",
"author": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"updateAuthor": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"created": "2013-08-29T03:54:49.000+0000",
"updated": "2013-08-29T03:54:49.000+0000"
},
{
"id": "268996",
"author": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"updateAuthor": {
"name": "mokesmokes",
"key": "mokesmokes",
"displayName": "Mark Mokryn",
"active": true,
"timeZone": "Asia/Jerusalem"
},
"created": "2013-08-30T09:03:00.000+0000",
"updated": "2013-08-30T09:03:00.000+0000"
}
],
"maxResults": 5,
"total": 5,
"startAt": 0
}
}
}