mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-01-20 04:48:01 -05:00
When you turn a LoyaltyCard into a bundle, it writes the files to storage as it can't otherwise fit in the limited storage size. This means that, on rotation, you write all images to storage and load them again. Using a ViewModel prevents that storage hit due to holding it in memory (as a ViewModel has a longer lifecycle).