diff --git a/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java b/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java index b5f6c63ae..cca491f2d 100644 --- a/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java +++ b/app/src/main/java/protect/card_locker/importexport/CatimaImporter.java @@ -142,6 +142,7 @@ public class CatimaImporter implements Importer { for (Map.Entry entry : data.cardGroups) { int cardId = idMap.getOrDefault(entry.getKey(), entry.getKey()); String groupId = entry.getValue(); + // For existing & newly imported cards, add the groups from the import to the internal state List cardGroups = DBHelper.getLoyaltyCardGroups(database, cardId); cardGroups.add(DBHelper.getGroup(database, groupId)); DBHelper.setLoyaltyCardGroups(database, cardId, cardGroups);