From 56c57b66a90cac0e1a5ac96b5b9edd4e47199986 Mon Sep 17 00:00:00 2001 From: ottoptj Date: Mon, 12 Aug 2024 22:02:06 +0300 Subject: [PATCH] Change manual location text to indicate that the location is from gps in the cases where gps location is used. Also updated gradle and changed version info. --- app/build.gradle.kts | 2 +- app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt | 2 +- build.gradle.kts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5c93798..8c68253 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -12,7 +12,7 @@ android { minSdk = 31 targetSdk = 34 versionCode = 1 - versionName = "1.0" + versionName = "0.5-test" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt b/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt index ac75d77..22e9760 100644 --- a/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt +++ b/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt @@ -43,7 +43,7 @@ class WeatherSystem(private val context: Context) { CoroutineScope(Dispatchers.IO).launch { val latitude = location.latitude val longitude = location.longitude - sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", sharedPreferenceManager.getWeatherRegion()) + sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", "Latest GPS location") activity.updateWeatherText() } } diff --git a/build.gradle.kts b/build.gradle.kts index 616efbf..b6a35b5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.5.1" apply false + id("com.android.application") version "8.5.2" apply false id("org.jetbrains.kotlin.android") version "1.9.22" apply false } \ No newline at end of file