{ "id": "121615", "key": "TIMOB-15580", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "15715", "description": "2013 Sprint 25", "name": "2013 Sprint 25", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15716", "description": "2013 Sprint 25 API", "name": "2013 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-25T19:22:23.000+0000", "created": "2013-10-25T12:04:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [ { "id": "36621", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "129008", "key": "TIDOC-1623", "fields": { "summary": "Add ActionBar subtitle property", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "34440", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "124894", "key": "TIMOB-16212", "fields": { "summary": "Android: ActionBar expose setDisplayShowHomeEnabled and setDisplayShowTitleEnabled", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-06-19T12:43:42.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": "In native Android it is possible to add a subtitle to the ActionBar as follows:\r\n\r\n{code}\r\nActionBar ab = getActionBar();\r\nab.setTitle(\"My Title\");\r\nab.setSubtitle(\"sub-title\");\r\n{code}\r\n\r\nThis is not possible in Titanium, please implement the subtitle feature for Android action bars.\r\n\r\nRelated Android Doc: http://developer.android.com/reference/android/app/ActionBar.html#setSubtitle(java.lang.CharSequence)", "attachment": [ { "id": "46833", "filename": "ActionBar.png", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-25T08:41:39.000+0000", "size": 45968, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Add sub title property to the ActionBar", "creator": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "comment": { "comments": [ { "id": "277937", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Test case\r\n{code}\r\n var win = Ti.UI.createWindow({\r\n title: \"Old Title\",\r\n navBarHidden: false\r\n}); \r\nvar actionBar;\r\n\r\nwin.addEventListener(\"open\", function() {\r\n if (Ti.Platform.osname === \"android\") {\r\n if (! win.activity) {\r\n Ti.API.error(\"Can't access action bar on a lightweight window.\");\r\n } else {\r\n actionBar = win.activity.actionBar;\r\n if (actionBar) {\r\n \r\n \r\n actionBar.title = \"New Title\";\r\n actionBar.subtitle = \"New sub Title\";\r\n actionBar.onHomeIconItemSelected = function() {\r\n Ti.API.info(\"Home icon clicked!\");\r\n };\r\n }\r\n }\r\n }\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T12:42:04.000+0000", "updated": "2014-03-25T18:20:36.000+0000" }, { "id": "277940", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4908\r\n\r\n ", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-04T12:47:58.000+0000", "updated": "2013-11-04T12:47:58.000+0000" }, { "id": "298494", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_2_X Backport PR : https://github.com/appcelerator/titanium_mobile/pull/5515", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-24T22:19:23.000+0000", "updated": "2014-03-24T22:19:23.000+0000" }, { "id": "298541", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified not fix using code provided in the comments with below environment:\r\n\r\nAppc Studio: 3.2.3.201403190645\r\nSdk: 3.2.3.v20140324164913\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy:1.3.1\r\ntitanium:3.2.1\r\ntitanium-code-processor:1.1.0\r\nXcode: 5.1\r\nOsx: Maverick(10.9.2)\r\nDevice: Nexus 7 (V 4.4.2)\r\n\r\nNot able to see subTitle “New sub Title” added to the ActionBar. However able to see title property.Got same result using Master's SDK:3.3.0 \r\n\r\nRefer to the attached screenshot \"ActionBar.png\" for further reference.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-25T08:41:15.000+0000", "updated": "2014-03-25T08:41:15.000+0000" }, { "id": "298650", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There was a error in the testcase (should be `subtitle` not `subTitle`). Please retest with the updated test above.", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T19:22:23.000+0000", "updated": "2014-03-25T19:22:23.000+0000" }, { "id": "298724", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. We now see a sub title when subtitle property is used in actionbar.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.3.201403190645\r\nTi SDK : 3.2.3.v20140324114345 , 3.3.0.v20140324231714 \r\nMac OSX : 10.8.5\r\nAlloy : 1.3.1\t\r\nCLI - sudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X (3.2.3-dev)\r\nSamsung Galaxy S4 - Android 4.2.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-26T00:09:18.000+0000", "updated": "2014-03-26T00:09:18.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }