{ "id": "98423", "key": "TIMOB-10260", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14098", "description": "Sprint 2012-18 API", "name": "Sprint 2012-18 API", "archived": true, "released": true, "releaseDate": "2012-09-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-04T05:16:51.000+0000", "created": "2012-07-31T10:09:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_app_properties", "qe-review", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "19535", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "98424", "key": "TIMOB-10261", "fields": { "summary": "Ti.App.Properties 'change' event parity for Mobile Web", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19538", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "98426", "key": "TIMOB-10262", "fields": { "summary": "MobileWeb: Ti.App.Properties 'change' event parity for Mobile Web", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19532", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "98422", "key": "AC-3213", "fields": { "summary": "Ti.App.Properties 'change' event parity for Android", "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" } }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19531", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "98042", "key": "TIMOB-10314", "fields": { "summary": "iOS: Ti.App.Properties 'change' event", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "23435", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103735", "key": "TIMOB-11855", "fields": { "summary": "Android: Ti.App.Properties change event should support Ti.UI.Android.openPreferences", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-08T00:47:52.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": "Taken from TC-1101:\r\n\r\nadded a \"change\" event to Ti.App.Properties to listen for changes of Properties\r\nThe test case comes with a settings.bundle in attachment which allows to really test that feature.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar info = Ti.UI.createLabel();\r\nwin.add(info);\r\n\r\nvar switchButton = Ti.UI.createSwitch({\r\n top:40,\r\n value:Ti.App.Properties.getBool('test', false) // mandatory property for iOS \r\n});\r\nswitchButton.addEventListener('change',function(_event){\r\n Ti.App.Properties.setBool('test', _event.value);\r\n});\r\nwin.add(switchButton);\r\n\r\nfunction onPropertiesChange()\r\n{\r\n switchButton.value = Ti.App.Properties.getBool('test');\r\n info.text = 'onPropertiesChange';\r\n Ti.API.info('onPropertiesChange')\r\n setTimeout(function(){info.text = '';}, 1000);\r\n}\r\n \r\nTi.App.Properties.addEventListener('change',onPropertiesChange);\r\n\r\nwin.addEventListener('close', function() {\r\n Ti.App.Properties.removeEventListener('change',onPropertiesChange);\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n2. Click on switch button, you should see \"onPropertiesChange\" in log.", "attachment": [], "flagged": false, "summary": "Android: Ti.App.Properties 'change' event parity for Android", "creator": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 2.2.0 (master)\r\n", "comment": { "comments": [ { "id": "217125", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120830182512\r\nStudio:2.2.0.v20120830182512\r\nDevices: Samsung galaxy tab(v 3.2)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T01:53:47.000+0000", "updated": "2012-08-31T01:53:47.000+0000" }, { "id": "217378", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-04T05:15:38.000+0000", "updated": "2012-09-04T05:15:38.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }