AdWithFlyer needs to capture muliple states of progress.
AdWithFlyer
is used to preload and store flyer images.
In order for this to work correctly we need to consider multiple states of loading progress:
-
Not Loaded -- The image has not been attempted to load with ION
-
Loading... Image is in progress
-
Loaded - image is loaded, and does not need to be reloaded.
-
Error -- image could not be loaded.
Since the ION framework returns a future, which should handle the last three states, we can probably just pull the image loading into AdWithFlyer.
I'll do an investigation into this later today if I have time. I may reassign to you @engrMiguel
Comments (3)
-
reporter -
reporter I ran into a similar race condition with the business logo. The marker on the map would load sometime, and then other times the view would load.
The solution was to move loading of the picture into the model, using the future interface. It made a lot of sense, architecturally, and worked well.
-
reporter - changed status to wontfix
Works fine on real devices.
- Log in to comment
I'll check this out tomorrow. Will be updating some other stuff in preparation for the new advertisement form.