[TIMOB-3093] Android: Non-cached network images will not appear in TiUIImageView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M10 |
Components | Android |
Labels | android, defect, regression, release-1.6.0, reported-1.6.0 |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:36:42.000+0000 |
Updated | 2011-04-17T02:00:54.000+0000 |
Description
If our cache implementation does not cache an image (such as if the http header when retrieving that image says to not cache it), it fails to appear in the image view.
Failcase app.js:
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#000',
exitOnClose: true
});
var thisURL = "module=MultiSites&action=getEvolutionGraph&period=day&date=2011-01-04,2011-02-02&evolutionBy=visits&columns=nb_visits&idSite=7&idsite=7&viewDataTable=sparkline";
var paramArray = thisURL.split("&");
for(var i=0,ilen=paramArray.length;i<ilen;i++){
var thisKeyValue = paramArray[i].split("=");
thisKeyValue[1] = Ti.Network.encodeURIComponent(thisKeyValue[1]);
paramArray[i] = thisKeyValue.join("=");
}
var encodedURI = paramArray.join("&");
var encodedURL = "http://demo.piwik.org/index.php?" + encodedURI;
Ti.API.info(encodedURL);
var imageView = Ti.UI.createImageView({
image: encodedURL
});
win.add(imageView);
win.open();
(from [26b410ecbf9ceeaaebf8d59bdd8c6a4ac7ddc899]) [#3093 state:fixed-in-qa] Make sure that remote images which don't land in our cache are still fetched. https://github.com/appcelerator/titanium_mobile/commit/26b410ecbf9ceeaaebf8d59bdd8c6a4ac7ddc899"> https://github.com/appcelerator/titanium_mobile/commit/26b410ecbf9c...
(from [7a685409bdad14f753ea6e8429383707e4fbc748]) [#3093 state:fixed-in-qa] Make sure that remote images which don't land in our cache are still fetched. https://github.com/appcelerator/titanium_mobile/commit/7a685409bdad14f753ea6e8429383707e4fbc748"> https://github.com/appcelerator/titanium_mobile/commit/7a685409bdad...
verified emulator 2.2