mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-05-11 01:23:07 -04:00
Load images on request
This prevents loading the front and back images when scrolling through the loyalty card list and should allow scaling to more images/files more easily
This commit is contained in:
@@ -335,7 +335,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||
LoyaltyCard card = LoyaltyCard.fromCursor(context, cardCursor);
|
||||
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
|
||||
String name = Utils.getCardImageFileName(card.id, imageLocationType);
|
||||
if (card.getImageForImageLocationType(imageLocationType) != null) {
|
||||
if (card.getImageForImageLocationType(context, imageLocationType) != null) {
|
||||
files.add(name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user