From f5e8efb875afc6d7d588f76289803f7ebfb5c1e3 Mon Sep 17 00:00:00 2001
From: Domalar <48490969+Domalar@users.noreply.github.com>
Date: Thu, 18 May 2023 18:46:38 +0200
Subject: [PATCH 1/2] Fixed a Type in German Translation (Standart => Standard)
---
app/src/main/res/values-de-rDE/strings.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml
index 2033a70..689eb7e 100644
--- a/app/src/main/res/values-de-rDE/strings.xml
+++ b/app/src/main/res/values-de-rDE/strings.xml
@@ -6,7 +6,7 @@
Abbrechen
Auswählen
Bereinigen
- Standart
+ Standard
Spenden
Fertig
Exportieren
From 90bf43b891c1dfa7473be0412da528b31572f6d0 Mon Sep 17 00:00:00 2001
From: Domalar <48490969+Domalar@users.noreply.github.com>
Date: Thu, 18 May 2023 19:07:31 +0200
Subject: [PATCH 2/2] New Setting "Import into Archive" => does the same as in
the past but if slider is disabled the times that are imported, are not
imported into the archive => the times are imported in the current sessions.
---
.../com/aricneto/twistytimer/activity/MainActivity.java | 6 ++++--
app/src/main/res/values-de-rDE/strings.xml | 2 ++
app/src/main/res/values/pref_keys.xml | 1 +
app/src/main/res/values/strings.xml | 2 ++
app/src/main/res/xml/prefs.xml | 6 ++++++
5 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/com/aricneto/twistytimer/activity/MainActivity.java b/app/src/main/java/com/aricneto/twistytimer/activity/MainActivity.java
index f04de95..9298876 100644
--- a/app/src/main/java/com/aricneto/twistytimer/activity/MainActivity.java
+++ b/app/src/main/java/com/aricneto/twistytimer/activity/MainActivity.java
@@ -1037,6 +1037,8 @@ protected void onProgressUpdate(Integer... values) {
protected Void doInBackground(Void... voids) {
List solveList = new ArrayList<>();
+ boolean importIntoArchive = Prefs.getBoolean(R.string.pk_import_archive, true);
+
try {
BufferedReader br = new BufferedReader(new FileReader(mFile));
@@ -1051,7 +1053,7 @@ protected Void doInBackground(Void... voids) {
try {
solveList.add(new Solve(
Integer.parseInt(line[2]), line[0], line[1], Long.parseLong(line[3]),
- line[4], Integer.parseInt(line[5]), line[6], true));
+ line[4], Integer.parseInt(line[5]), line[6], importIntoArchive));
} catch (Exception e) {
parseErrors++;
}
@@ -1088,7 +1090,7 @@ protected Void doInBackground(Void... voids) {
solveList.add(new Solve(
time, mPuzzleType, mPuzzleCategory,
- date, scramble, penalty, "", true));
+ date, scramble, penalty, "", importIntoArchive));
} catch (Exception e) {
parseErrors++;
}
diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml
index 689eb7e..81f9a5c 100644
--- a/app/src/main/res/values-de-rDE/strings.xml
+++ b/app/src/main/res/values-de-rDE/strings.xml
@@ -240,8 +240,10 @@
Aktuelles Schema speichern
Kürzlich hinzugefügte Einstellungen
Experimentelle. Färbt die Navigationsleiste in den Designfarben.\nFunktioniert nur auf Android Lollipop und besser!
+ Importiert Zeiten ins Archiv, deaktiviert in die Session
Farbige Navigationsleiste
Menü-Hintergrund deaktivieren
+ Importiere Zeiten in Archiv
Deaktiviert den getönten Hintergrund der oberen Menüleiste
Textstil
Allgemeines
diff --git a/app/src/main/res/values/pref_keys.xml b/app/src/main/res/values/pref_keys.xml
index 6e7693a..49ada13 100644
--- a/app/src/main/res/values/pref_keys.xml
+++ b/app/src/main/res/values/pref_keys.xml
@@ -30,6 +30,7 @@ THESE KEYS MUST NOT BE LOCALIZED!
clearEnabled
pkTintNavigationBar
pkMenuBackground
+ pkImportArchive
scrambleEnabled
showHints
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 759aeed..abb2ef8 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -401,6 +401,8 @@
Tint navigation bar
Disable menu background
Disables the tinted background behind the top menu bar
+ Import times into archive
+ Import times into archive, inactive into the session
Text style
General
List
diff --git a/app/src/main/res/xml/prefs.xml b/app/src/main/res/xml/prefs.xml
index 4ab111a..15ef7e0 100644
--- a/app/src/main/res/xml/prefs.xml
+++ b/app/src/main/res/xml/prefs.xml
@@ -280,6 +280,12 @@
android:summary="@string/pref_summary_menu_background"
android:title="@string/pref_title_menu_background" />
+
+