commons-app / apps-android-commons

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons
https://commons-app.github.io/
Apache License 2.0
1.02k stars 1.2k forks source link

Cache images in the explore screen #5757

Open sivaraam opened 3 months ago

sivaraam commented 3 months ago

What is the user problem or growth opportunity you want to see solved?

Right now we cache images loaded in the Contributions screen. As a consequence, it is possible for the user to view them even after they've gone offline until the app is retained in memory.

The same behaviour does not happen for the "Explore" screen. When a user loads images in "Explore" screen; go offline; then switch to a different tab such as "Contributions / Bookmarks" and come back to the "Explore" screen, they would be shown an empty screen again. It would be better if we make sure the images are cached and rendered from the cache in this scenario.

How do you know that this problem exists today? Why is this important?

This behaviour is repeatedly reproducible and was reported via a user feedback in Google Play Store. This is good improvement since it would help conservation of resources as we just loaded the images a few moments ago. If we cache them we could render the images from the same without the user needing to connect to the network again to load them.

Who will benefit from it?

Any user who has limited access to network / prefers to browse images offline would benefit from this.

Anything else you would like to add?

We should ensure the memory taken up by the cache is limited, though. This would ensure we don't hog up resources on low-memory devices.

muskan2622 commented 3 months ago

Hey Can you assign me this??

nicolas-raoul commented 1 month ago

@muskan2622 Any progress on this? :-)