aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-04-10 15:23:34 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-04-10 15:23:34 +0000
commit0724dc861ad957370b7aa03d2f89375d0d6ebe4d (patch)
tree791a91bd617d549c15786a591fb05d848f2c9331 /app
parent34a9cee965e76efea629fba348395f5a8d20353d (diff)
downloadinfinity-for-reddit-0724dc861ad957370b7aa03d2f89375d0d6ebe4d.tar
infinity-for-reddit-0724dc861ad957370b7aa03d2f89375d0d6ebe4d.tar.gz
infinity-for-reddit-0724dc861ad957370b7aa03d2f89375d0d6ebe4d.tar.bz2
infinity-for-reddit-0724dc861ad957370b7aa03d2f89375d0d6ebe4d.tar.lz
infinity-for-reddit-0724dc861ad957370b7aa03d2f89375d0d6ebe4d.tar.xz
infinity-for-reddit-0724dc861ad957370b7aa03d2f89375d0d6ebe4d.tar.zst
infinity-for-reddit-0724dc861ad957370b7aa03d2f89375d0d6ebe4d.zip
Version 4.3.0-beta1. Tweak the name of the backup file.
Diffstat (limited to '')
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/asynctasks/BackupSettings.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/build.gradle b/app/build.gradle
index c7670293..f3717c04 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -6,8 +6,8 @@ android {
applicationId "ml.docilealligator.infinityforreddit"
minSdkVersion 21
targetSdkVersion 30
- versionCode 60
- versionName "4.2.5"
+ versionCode 61
+ versionName "4.3.0-beta1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
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();