{ "id": "136114", "key": "TIMOB-17633", "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": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-12T18:25:02.000+0000", "created": "2014-09-04T18:04:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.5.0", "TCSupport", "activity", "android", "listview", "module_listview", "qe-testadded", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-10-08T22:14: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": "Try the following on both 3.5.0 and 3.3.0.GA\r\n1. Check \"Do not keep activities\" in developer options\r\n2. Open and close window 2\r\n3. On 3.5.0 the ListView disappears when we come back from window 2\r\n4. Note that the button does not disappear, so the problem seems specific to listview.\r\n\r\n{code}\r\nvar listView = Ti.UI.createListView();\r\nvar sections = [];\r\n\r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});\r\nvar data = [];\r\nfor (var i = 0; i < 2; i++) {\r\n\tdata.push({properties: { title: 'row ' + i, color: 'white', font: {fontSize: '15dp'}}});\r\n}\r\nfruitSection.setItems(data);\r\nsections.push(fruitSection);\r\nlistView.sections = sections;\r\n\r\nvar win1 = Ti.UI.createWindow({title : 'TW1',backgroundColor:'blue'});\r\nwin1.add(listView);\r\n\r\nvar win2 = Ti.UI.createWindow({title: 'Window 2'});\r\n \r\nvar openWindowButton = Ti.UI.createButton({title:'Open window2'});\r\nwin1.add(openWindowButton);\r\n\r\nvar closeWindowButton = Ti.UI.createButton({width:Ti.UI.SIZE,height:Ti.UI.SIZE,title:'Close window2'});\r\nwin2.add(closeWindowButton);\r\n \r\nopenWindowButton.addEventListener('click',function(e){win2.open();});\r\ncloseWindowButton.addEventListener('click',function(e){win2.close();});\r\n\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ListView disappears after activity is recreated", "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": "Bug on SDK 3.5.0 master, tested on Android 4.4.2 device\r\nWorks fine on 3.3.0.GA", "comment": { "comments": [ { "id": "322134", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/6023\r\n3.4.X PR: https://github.com/appcelerator/titanium_mobile/pull/6024", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-05T21:04:02.000+0000", "updated": "2014-09-05T22:19:19.000+0000" }, { "id": "322154", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-05T22:25:41.000+0000", "updated": "2014-09-05T22:25:41.000+0000" }, { "id": "323372", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. \r\nThe listview does not disappear after win2 is closed.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.0.201409112242\r\nTi SDK : 3.4.0.v20140912084114 \r\nMac OSX : 10.9.4\r\nAlloy : 1.5.0-rc\r\nCLI - 3.4.0-rc2\r\nCode Processor: 1.1.1\r\nGalaxy S4 - Android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T18:24:28.000+0000", "updated": "2014-09-12T18:24:28.000+0000" }, { "id": "323375", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to add tester.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T18:24:50.000+0000", "updated": "2014-09-12T18:24:50.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }