mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-09-17 00:51:02 -04:00
CatimaImporter: add comment about card group import
Co-authored-by: Sylvia van Os <sylvia@hackerchick.me>
This commit is contained in:
1 parent
ac0f6f6f3e
commit
d350d0b2c7
1 file changed
+1
@@ -142,6 +142,7 @@ public class CatimaImporter implements Importer {
|
||||
for (Map.Entry<Integer, String> 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<Group> cardGroups = DBHelper.getLoyaltyCardGroups(database, cardId);
|
||||
cardGroups.add(DBHelper.getGroup(database, groupId));
|
||||
DBHelper.setLoyaltyCardGroups(database, cardId, cardGroups);
|
||||
|
||||
Reference in new issue
Block a user