Fix crash in volume button card switching with no other cards

This commit is contained in:
Sylvia van Os
2026-02-15 11:49:58 +01:00
parent 14e7f5bbb8
commit 4399cdadb0

View File

@@ -583,6 +583,11 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
}
private void prevNextCard(boolean next) {
// If there are no other cards, don't bother switching
if (cardList == null || cardList.size() == 1) {
return;
}
// If we're in RTL layout, we want the "left" button to be "next" instead of "previous"
// So we swap next around
boolean transitionRight = next;