From 0789dc7afd25a2bd3f444ca6f80f384c7119c7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Saleniuk?= Date: Fri, 28 Jun 2024 11:02:37 +0200 Subject: [PATCH] fix detekt --- .../android/ui/home/messagecomposer/location/GeocoderHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/location/GeocoderHelper.kt b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/location/GeocoderHelper.kt index 5ff587b03ae..b738d2d65d9 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/location/GeocoderHelper.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/location/GeocoderHelper.kt @@ -25,6 +25,7 @@ import javax.inject.Singleton @Singleton class GeocoderHelper @Inject constructor(private val geocoder: Geocoder) { + @Suppress("TooGenericExceptionCaught") fun getGeoLocatedAddress(location: Location): GeoLocatedAddress = try { geocoder.getFromLocation(location.latitude, location.longitude, 1).orEmpty()