From c829ddd5676d7fdbb159cb91eb8474f428b9b88d Mon Sep 17 00:00:00 2001 From: woheller69 Date: Fri, 20 Sep 2024 17:02:12 +0200 Subject: [PATCH] Fix wind speed in knots --- .../java/org/woheller69/weather/ui/Help/StringFormatUtils.java | 2 +- fastlane/metadata/android/en-US/changelogs/31.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/woheller69/weather/ui/Help/StringFormatUtils.java b/app/src/main/java/org/woheller69/weather/ui/Help/StringFormatUtils.java index c1c0ef4..9ae7a15 100644 --- a/app/src/main/java/org/woheller69/weather/ui/Help/StringFormatUtils.java +++ b/app/src/main/java/org/woheller69/weather/ui/Help/StringFormatUtils.java @@ -126,7 +126,7 @@ public static String formatWindSpeed(Context context, float wind_speed) { case "4": return formatInt((float) (wind_speed), context.getString(R.string.units_m_s)); case "5": - return formatInt((float) (wind_speed * 0.51444), context.getString(R.string.units_kn)); + return formatInt((float) (wind_speed * 1.94384), context.getString(R.string.units_kn)); default: return formatInt((float) (wind_speed * 2.236), context.getString(R.string.units_mph)); } diff --git a/fastlane/metadata/android/en-US/changelogs/31.txt b/fastlane/metadata/android/en-US/changelogs/31.txt index d350e3b..b776662 100644 --- a/fastlane/metadata/android/en-US/changelogs/31.txt +++ b/fastlane/metadata/android/en-US/changelogs/31.txt @@ -1 +1,2 @@ -Fix widgets for older devices \ No newline at end of file +Fix widgets for older devices +Fix wind speed in knots \ No newline at end of file