From d350d0b2c797be623c4d3f5e49e8eddf911c8aac Mon Sep 17 00:00:00 2001 From: FC Stegerman Date: Mon, 17 Jul 2023 20:38:27 +0200 Subject: [PATCH] CatimaImporter: add comment about card group import Co-authored-by: Sylvia van Os --- .../java/protect/card_locker/importexport/CatimaImporter.java | 1 + 1 file changed, 1 insertion(+) 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);