{ "id": "148330", "key": "TIMOB-18964", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "147807", "key": "TIMOB-18905", "fields": { "summary": "Android: Update Appcompat Lib to 22.1 & Alert Dialogs with material ", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-16T21:43:56.000+0000", "created": "2015-05-29T06:28:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-06-17T18:34:30.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": null, "attachment": [], "flagged": false, "summary": "Android: Update Android Alert Dialogs with Material", "creator": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "subtasks": [], "reporter": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "environment": null, "closedSprints": [ { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "354211", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6889\r\nTesting includes Progress Indicator as part of the code that handles that is changed.\r\n\r\nPlease test this on an Android version below 5.0 (before Lollipop). This will allow Alert Dialogs to have the material design look in versions below Lollipop.\r\n\r\nTest code:-\r\n{code}\r\n\r\nTi.UI.backgroundColor = 'white';\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Show Progress Dialog',\r\n top: 10\r\n});\r\n\r\nvar buttonAlert = Ti.UI.createButton({\r\n title: 'Show Alert Dialog',\r\n top: 110\r\n});\r\n\r\nvar buttonAlert2 = Ti.UI.createButton({\r\n title: 'Show Alert Dialog 2',\r\n top: 210\r\n});\r\n\r\nvar progressIndicator = Ti.UI.Android.createProgressIndicator({\r\n message: 'Loading...',\r\n location: Ti.UI.Android.PROGRESS_INDICATOR_DIALOG,\r\n type: Ti.UI.Android.PROGRESS_INDICATOR_DETERMINANT,\r\n cancelable: true,\r\n min: 0,\r\n max: 10\r\n});\r\n\r\nbutton.addEventListener('click', function (e) {\r\n progressIndicator.show();\r\n var value = 0;\r\n setInterval(function(){\r\n if (value > 10) {\r\n return;\r\n }\r\n progressIndicator.value = value;\r\n value ++;\r\n }, 200);\r\n // do some work that takes 3 seconds\r\n // ie. replace the following setTimeout block with your code\r\n setTimeout(function(){\r\n progressIndicator.hide();\r\n }, 3000);\r\n});\r\n\r\nbuttonAlert.addEventListener('click', function (e) {\r\n var dialog = Ti.UI.createAlertDialog({\r\n\tmessage: 'This is a message',\r\n\tok: 'Okay',\r\n\ttitle: 'This is a title'\r\n });\r\n dialog.show();\r\n});\r\n\r\nbuttonAlert2.addEventListener('click', function (e) {\r\n\talert('Alert call 2');\r\n});\r\n\r\n\r\nwin.add(button);\r\nwin.add(buttonAlert);\r\nwin.add(buttonAlert2);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-03T04:20:22.000+0000", "updated": "2015-06-03T04:58:55.000+0000" }, { "id": "355364", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation.\r\n\r\nThe alert dialogs now have material theme for android versions below android 5.0.\r\n\r\nTested on android 4.4.4 & 4.2.2. Looks good.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.1.0.201506151224\r\nTi SDK : 4.1.0.v20150616225249\r\nTi CLI : 4.0.1\r\nAlloy : 1.6.2\r\nMAC Yosemite : 10.10.3\r\nAppc NPM : 4.1.0-1\r\nAppc CLI : 4.1.0-1\r\nNode: v0.10.37\r\nNexus 5 - Android 5.1.1\r\nSamsung Galaxy S4 - Android 4.4.4\r\nSamsung Galaxy S3 - Android 4.2.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-17T18:33:45.000+0000", "updated": "2015-06-17T18:33:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }