From 0724dc861ad957370b7aa03d2f89375d0d6ebe4d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 10 Apr 2021 23:23:34 +0800 Subject: Version 4.3.0-beta1. Tweak the name of the backup file. --- .../ml/docilealligator/infinityforreddit/asynctasks/BackupSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/ml/docilealligator') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/BackupSettings.java b/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/BackupSettings.java index 044353f7..10cbd937 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/BackupSettings.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/BackupSettings.java @@ -132,7 +132,7 @@ public class BackupSettings { boolean result = false; try { String time = new SimpleDateFormat("yyyyMMdd-HHmmss").format(new Date(System.currentTimeMillis())); - String fileName = "Infinity_For_Reddit_Settings_Backup_v" + BuildConfig.VERSION_NAME + "-" + time + ".zip"; + String fileName = "Infinity_For_Reddit_Settings_Backup_v" + BuildConfig.VERSION_NAME + "-" + BuildConfig.VERSION_CODE + "-" + time + ".zip"; String filePath = context.getExternalCacheDir() + "/Backup/" + fileName; ZipFile zip = new ZipFile(filePath, "123321".toCharArray()); ZipParameters zipParameters = new ZipParameters(); -- cgit v1.2.3