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.

This commit is contained in:
ottoptj 2024-08-12 22:02:06 +03:00
commit 56c57b66a9
3 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ android {
minSdk = 31 minSdk = 31
targetSdk = 34 targetSdk = 34
versionCode = 1 versionCode = 1
versionName = "1.0" versionName = "0.5-test"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
} }

View file

@ -43,7 +43,7 @@ class WeatherSystem(private val context: Context) {
CoroutineScope(Dispatchers.IO).launch { CoroutineScope(Dispatchers.IO).launch {
val latitude = location.latitude val latitude = location.latitude
val longitude = location.longitude val longitude = location.longitude
sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", sharedPreferenceManager.getWeatherRegion()) sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", "Latest GPS location")
activity.updateWeatherText() activity.updateWeatherText()
} }
} }

View file

@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins { 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 id("org.jetbrains.kotlin.android") version "1.9.22" apply false
} }