From 3d543dd23c2fdbc6488d74cbe34492cafd6e4c26 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Mon, 9 Dec 2019 17:25:48 +0100 Subject: [PATCH] Use description as note --- app/src/main/java/protect/card_locker/PkpassImporter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/protect/card_locker/PkpassImporter.java b/app/src/main/java/protect/card_locker/PkpassImporter.java index 6219dffb6..df4fc96b4 100644 --- a/app/src/main/java/protect/card_locker/PkpassImporter.java +++ b/app/src/main/java/protect/card_locker/PkpassImporter.java @@ -44,15 +44,15 @@ public class PkpassImporter { JSONObject json = new JSONObject(readData); - String store = json.getString("description"); - // TODO: Note + String store = json.getString("organizationName"); + String note = json.getString("description"); String cardId = json.getJSONObject("barcode").getString("message"); String barcodeType = json.getJSONObject("barcode").getString("format").substring("PKBarcodeFormat".length()); if(barcodeType.equals("QR")) { barcodeType = "QR_CODE"; } - return new LoyaltyCard(-1, store, "", cardId, barcodeType, null, null); + return new LoyaltyCard(-1, store, note, cardId, barcodeType, null, null); } return null;