{ "id": "144391", "key": "TIMOB-18536", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-02-08T15:07:02.000+0000", "priority": null, "labels": [ "3.6.0", "andoid" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:10.000+0000", "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" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I was looking at the upcoming code changes in the master branch, and noticed that in TiFileHelper$loadDrawable, at the code that handles 9-patch, you create the bitmap using TiUIHelper.createDensityScaledBitmap. Then you pass it to the 9-patch processor.\r\nIf the target density is changed, this will ruin the borders of the 9-patch and the processor will see it as a normal bitmap.", "attachment": [], "flagged": false, "summary": "Can't use createDensityScaledBitmap() with 9-patch", "creator": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Titanium 3.6.0 android (next version on the master branch)", "comment": { "comments": [ { "id": "350363", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Noticed that this was somehow handled in the master branch but only for background property. The current \"fix\" won't work for ImageView src for example. My suggested fix for this problem (and the way I fixed it locally) is here:\r\nhttps://www.dropbox.com/s/slvy2dk07tb2pi3/TiFileHelper.java?dl=0", "updateAuthor": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-04-22T09:44:52.000+0000", "updated": "2015-04-22T09:44:52.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }