From 4876aa3e304c58d240626defc69705eb1ec51a76 Mon Sep 17 00:00:00 2001 From: woheller69 Date: Mon, 27 Nov 2023 09:18:13 +0100 Subject: [PATCH] Update V2.3 --- app/build.gradle | 4 ++-- .../org/woheller69/weather/services/UpdateDataService.java | 4 ++-- .../weather_api/open_meteo/OMHttpRequestForWeatherAPI.java | 2 +- fastlane/metadata/android/en-US/changelogs/23.txt | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/23.txt diff --git a/app/build.gradle b/app/build.gradle index 1386df2..3527912 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "org.woheller69.omweather" minSdkVersion 21 targetSdkVersion 33 - versionCode 22 - versionName "2.2" + versionCode 23 + versionName "2.3" buildConfigField "String", "BASE_URL", "\"https://api.open-meteo.com/v1/\"" buildConfigField "String", "GITHUB_URL","\"https://github.com/woheller69/omweather/\"" diff --git a/app/src/main/java/org/woheller69/weather/services/UpdateDataService.java b/app/src/main/java/org/woheller69/weather/services/UpdateDataService.java index db3f258..1a53900 100644 --- a/app/src/main/java/org/woheller69/weather/services/UpdateDataService.java +++ b/app/src/main/java/org/woheller69/weather/services/UpdateDataService.java @@ -116,8 +116,8 @@ private void handleUpdateForecastAction(Intent intent, int cityId, float lat, fl // Update if update forced or if a certain time has passed if (skipUpdateInterval || timestamp + updateInterval - systemTime <= 0) { - IHttpRequestForWeatherAPI forecastOneCallRequest = new OMHttpRequestForWeatherAPI(getApplicationContext()); - forecastOneCallRequest.perform(lat,lon, cityId); + IHttpRequestForWeatherAPI omHttpRequestForWeatherAPI = new OMHttpRequestForWeatherAPI(getApplicationContext()); + omHttpRequestForWeatherAPI.perform(lat,lon, cityId); } } diff --git a/app/src/main/java/org/woheller69/weather/weather_api/open_meteo/OMHttpRequestForWeatherAPI.java b/app/src/main/java/org/woheller69/weather/weather_api/open_meteo/OMHttpRequestForWeatherAPI.java index d2b7ad9..456d0e8 100644 --- a/app/src/main/java/org/woheller69/weather/weather_api/open_meteo/OMHttpRequestForWeatherAPI.java +++ b/app/src/main/java/org/woheller69/weather/weather_api/open_meteo/OMHttpRequestForWeatherAPI.java @@ -15,7 +15,7 @@ public class OMHttpRequestForWeatherAPI extends OMHttpRequest implements IHttpRe /** * Member variables. */ - private Context context; + private final Context context; /** * @param context The context to use. diff --git a/fastlane/metadata/android/en-US/changelogs/23.txt b/fastlane/metadata/android/en-US/changelogs/23.txt new file mode 100644 index 0000000..92e8a8c --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/23.txt @@ -0,0 +1 @@ +Bugfixes \ No newline at end of file