mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-19 15:47:35 -05:00
Merge pull request #3024 from CatimaLoyalty/fix/3023
Fix crash in volume button card switching with no other cards
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user