Set compile and target SDK to 33
This commit is contained in:
parent
042c0e2040
commit
6b09380eed
@ -269,7 +269,7 @@ open class LocalFile(
|
|||||||
loc.indexOf('/')
|
loc.indexOf('/')
|
||||||
).toDouble()
|
).toDouble()
|
||||||
val list = Geocoder(context).getFromLocation(lon, lat, 1)
|
val list = Geocoder(context).getFromLocation(lon, lat, 1)
|
||||||
if (list.size > 0) {
|
if (list != null && list.size > 0) {
|
||||||
metaData.add(R.string.file_meta_location to list[0].formatToString())
|
metaData.add(R.string.file_meta_location to list[0].formatToString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -290,7 +290,7 @@ open class LocalFile(
|
|||||||
val loc = exif.latLong
|
val loc = exif.latLong
|
||||||
if (loc != null && Geocoder.isPresent()) {
|
if (loc != null && Geocoder.isPresent()) {
|
||||||
val list = Geocoder(context).getFromLocation(loc[0], loc[1], 1)
|
val list = Geocoder(context).getFromLocation(loc[0], loc[1], 1)
|
||||||
if (list.size > 0) {
|
if (list != null && list.size > 0) {
|
||||||
metaData.add(R.string.file_meta_location to list[0].formatToString())
|
metaData.add(R.string.file_meta_location to list[0].formatToString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,8 +37,8 @@ dependencyResolutionManagement {
|
|||||||
versionCatalogs {
|
versionCatalogs {
|
||||||
create("sdk") {
|
create("sdk") {
|
||||||
version("minSdk", "26")
|
version("minSdk", "26")
|
||||||
version("compileSdk", "32")
|
version("compileSdk", "33")
|
||||||
version("targetSdk", "32")
|
version("targetSdk", "33")
|
||||||
}
|
}
|
||||||
create("libs") {
|
create("libs") {
|
||||||
version("kotlin", "1.7.10")
|
version("kotlin", "1.7.10")
|
||||||
|
|||||||
@ -38,7 +38,7 @@ abstract class LatLonWeatherProvider : WeatherProvider<LatLonWeatherLocation>()
|
|||||||
CrashReporter.logException(e)
|
CrashReporter.logException(e)
|
||||||
emptyList()
|
emptyList()
|
||||||
}
|
}
|
||||||
}
|
} ?: emptyList()
|
||||||
return locations.mapNotNull {
|
return locations.mapNotNull {
|
||||||
LatLonWeatherLocation(
|
LatLonWeatherLocation(
|
||||||
lat = it.latitude,
|
lat = it.latitude,
|
||||||
@ -72,7 +72,7 @@ abstract class LatLonWeatherProvider : WeatherProvider<LatLonWeatherLocation>()
|
|||||||
return withContext(Dispatchers.IO) {
|
return withContext(Dispatchers.IO) {
|
||||||
try {
|
try {
|
||||||
Geocoder(context).getFromLocation(lat, lon, 1)
|
Geocoder(context).getFromLocation(lat, lon, 1)
|
||||||
.firstOrNull()
|
?.firstOrNull()
|
||||||
?.formatToString() ?: formatLatLon(lat, lon)
|
?.formatToString() ?: formatLatLon(lat, lon)
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
CrashReporter.logException(e)
|
CrashReporter.logException(e)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user