From aabf3512923a8bc4c6e28a18defc1f3d5cbbb2d9 Mon Sep 17 00:00:00 2001 From: woheller69 Date: Tue, 19 Mar 2024 12:47:15 +0100 Subject: [PATCH] V6.4 --- app/build.gradle | 4 ++-- .../weather/preferences/AppPreferencesManager.java | 10 +--------- fastlane/metadata/android/de-DE/changelogs/64.txt | 1 + 3 files changed, 4 insertions(+), 11 deletions(-) create mode 100644 fastlane/metadata/android/de-DE/changelogs/64.txt diff --git a/app/build.gradle b/app/build.gradle index 848fe4b..db5d926 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.woheller69.weather" minSdkVersion 21 targetSdkVersion 33 - versionCode 63 - versionName "6.3" + versionCode 64 + versionName "6.4" buildConfigField "String", "DEFAULT_API_KEY", "\"00000000000000000000000000000000\"" buildConfigField "String", "BASE_URL", "\"https://api.openweathermap.org/data/2.5/\"" diff --git a/app/src/main/java/org/woheller69/weather/preferences/AppPreferencesManager.java b/app/src/main/java/org/woheller69/weather/preferences/AppPreferencesManager.java index 71c8371..c23c0da 100644 --- a/app/src/main/java/org/woheller69/weather/preferences/AppPreferencesManager.java +++ b/app/src/main/java/org/woheller69/weather/preferences/AppPreferencesManager.java @@ -68,19 +68,11 @@ public float convertDistanceFromKilometers(float kilometers) { } } - /** - * @return Returns true if kilometers was set as distance unit in the preferences else false. - */ - public boolean isDistanceUnitKilometers() { - int prefValue = Integer.parseInt(preferences.getString("distanceUnit", "0")); - return (prefValue == 1); - } - /** * @return Returns true if miles was set as distance unit in the preferences else false. */ public boolean isDistanceUnitMiles() { - int prefValue = Integer.parseInt(preferences.getString("distanceUnit", "0")); + int prefValue = Integer.parseInt(preferences.getString("distanceUnit", "1")); return (prefValue == 2); } diff --git a/fastlane/metadata/android/de-DE/changelogs/64.txt b/fastlane/metadata/android/de-DE/changelogs/64.txt new file mode 100644 index 0000000..d4c78f5 --- /dev/null +++ b/fastlane/metadata/android/de-DE/changelogs/64.txt @@ -0,0 +1 @@ +Fix translation \ No newline at end of file