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:
Sylvia van Os
2024-12-01 13:12:44 +01:00
parent 7fe67960bf
commit e0786594bc
11 changed files with 173 additions and 83 deletions

View File

@@ -307,7 +307,12 @@ public class LoyaltyCardViewActivityTest {
} catch (ClassCastException e) {
// This is probably a VectorDrawable, the placeholder image. Aka: No image.
}
assertEquals(contents, image);
if (contents == null && image == null) {
return;
}
assertTrue(image.sameAs((Bitmap) contents));
} else {
throw new UnsupportedOperationException();
}