{ "id": "80744", "key": "TIMOB-5391", "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": "12079", "description": "", "name": "Sprint 2011-39", "archived": true, "released": true, "releaseDate": "2011-10-03" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-30T15:37:29.000+0000", "created": "2011-09-29T13:54:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "merged-v8", "module_imageview", "qe-testadded", "stage" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-12-06T15:37:13.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": "While evaluating bitmap allocation, we discovered that bitmaps are fetched and scaled-down twice for each ImageView, which should not be necessary. We are working to fix that in core code.\r\n\r\nReproduce in 1.7.2:\r\n\r\n* Create a new app with this app.js:\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\n\r\nwin.add(Ti.UI.createImageView({\r\n\timage: \"KS_nav_ui.png\"\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\n* Launch the app from Ti Studio *to an emulator*.\r\n\r\n* In Ti Studio, down at the console view, turn off the two \"Show console when...\" options.\r\n\r\n* Switch to the FastDev Process console.\r\n\r\n* When the app loads, you'll notice in the FastDev Process console that KS_nav_ui.png is fetched three times. *It should only be fetched twice* -- once for getting bitmap size in order to calculate a sample size, and once to load the whole thing.", "attachment": [], "flagged": false, "summary": "Android: Image Bitmap Loaded Multiple Times in ImageView", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "167389", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/514", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-29T16:51:56.000+0000", "updated": "2011-09-29T16:51:56.000+0000" }, { "id": "175078", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.1.v20111205164258 v8/rhino on\r\nEmulator 4.0 and 2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T15:37:13.000+0000", "updated": "2011-12-06T15:37:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }