[TIMOB-2694] Android: ImageViews inside a TableView are always fetched async even when using cache
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M03 |
Components | Android |
Labels | android, defect, imageview, release-1.6.0, reported-1.5.1, rplist, tableview |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:27:13.000+0000 |
Updated | 2011-04-17T01:59:50.000+0000 |
Description
we need to use TiResponseCache.peek() to check for cached images, and set them synchronously instead of incurring the cost of an async download and response job.
(from [e3fec9e32ed235ceb30221ff8581bcc94f4c6c54]) consult the TiResponseCache before we fire an async job for setting the image, this saves considerable cost when using several image views i.e.
in a TableView with many rows [#2694 state:fixed-in-qa]
https://github.com/appcelerator/titanium_mobile/commit/e3fec9e32ed235ceb30221ff8581bcc94f4c6c54"> https://github.com/appcelerator/titanium_mobile/commit/e3fec9e32ed2...
used KS remote image, loaded it, disconnected from network and redid test, verified image loaded (as per Don).
[INFO] Titanium SDK version: 1.6.0 (01/10/11 08:25 3452f06). G1 (1.6) and droid1 (2.2.1)