mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-19 23:58:57 -05: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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user