From 8e908500e4d900da68d2de43ac0e4cb51d37ffcc Mon Sep 17 00:00:00 2001 From: k1rakishou Date: Sun, 27 Oct 2019 21:07:04 +0300 Subject: [PATCH] (#172) Set the CURRENT_EXPORT_SETTINGS_VERSION to what it should be (5) --- .../chan/core/repository/ImportExportRepository.kt | 2 +- .../chan/ui/controller/ImportExportSettingsController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kuroba/app/src/main/java/com/github/adamantcheese/chan/core/repository/ImportExportRepository.kt b/Kuroba/app/src/main/java/com/github/adamantcheese/chan/core/repository/ImportExportRepository.kt index b31414c41b..ac9a48cbf7 100644 --- a/Kuroba/app/src/main/java/com/github/adamantcheese/chan/core/repository/ImportExportRepository.kt +++ b/Kuroba/app/src/main/java/com/github/adamantcheese/chan/core/repository/ImportExportRepository.kt @@ -607,6 +607,6 @@ constructor( // Don't forget to change this when changing any of the Export models. // Also, don't forget to handle the change in the onUpgrade or onDowngrade methods - const val CURRENT_EXPORT_SETTINGS_VERSION = 4 + const val CURRENT_EXPORT_SETTINGS_VERSION = 5 } } diff --git a/Kuroba/app/src/main/java/com/github/adamantcheese/chan/ui/controller/ImportExportSettingsController.java b/Kuroba/app/src/main/java/com/github/adamantcheese/chan/ui/controller/ImportExportSettingsController.java index 2b1ec8a423..5b27b77ed1 100644 --- a/Kuroba/app/src/main/java/com/github/adamantcheese/chan/ui/controller/ImportExportSettingsController.java +++ b/Kuroba/app/src/main/java/com/github/adamantcheese/chan/ui/controller/ImportExportSettingsController.java @@ -185,7 +185,7 @@ private void showCreateNewOrOverwriteDialog() { AlertDialog alertDialog = new AlertDialog.Builder(context) .setTitle(R.string.import_or_export_dialog_title) - .setPositiveButton(positiveButtonId, (dialog, which) -> { + .setPositiveButton(positiveButtonId, (dialog, which) -> { overwriteExisting(); }) .setNegativeButton(negativeButtonId, (dialog, which) -> {