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
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionName = "0.5-test"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

View file

@ -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()
}
}