Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2694] Android: ImageViews inside a TableView are always fetched async even when using cache

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:50.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M03
ComponentsAndroid
Labelsandroid, defect, imageview, release-1.6.0, reported-1.5.1, rplist, tableview
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T03:27:13.000+0000
Updated2011-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.

Comments

  1. Marshall Culpepper 2011-04-15

    (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...

  2. Thomas Huelbert 2011-04-15

    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)

JSON Source