From 1508b143c54bbd2c68bd7895832348be82b99e7f Mon Sep 17 00:00:00 2001 From: kenkeiras Date: Mon, 22 Jan 2018 23:14:51 +0100 Subject: [PATCH] If card name is given (not path), save it as JSON file. --- app/src/main/java/com/codigoparallevar/minicards/CardFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/codigoparallevar/minicards/CardFile.java b/app/src/main/java/com/codigoparallevar/minicards/CardFile.java index 3b3c814..1ca279b 100644 --- a/app/src/main/java/com/codigoparallevar/minicards/CardFile.java +++ b/app/src/main/java/com/codigoparallevar/minicards/CardFile.java @@ -142,7 +142,7 @@ public class CardFile { } public void save(Context context) throws IOException { - String cardPath = getDefaultCardStorage(context) + PATH_SEPARATOR + name; + String cardPath = getDefaultCardStorage(context) + PATH_SEPARATOR + name + ".json"; save(cardPath); }