Merge pull request #3024 from CatimaLoyalty/fix/3023

Fix crash in volume button card switching with no other cards
This commit is contained in:
Sylvia van Os
2026-02-15 12:25:01 +01:00
committed by GitHub

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;