Ver Fonte

suppress generic exception handling warnings

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger há 4 anos atrás
pai
commit
71bffc0ea8

+ 1 - 0
app/src/main/java/com/nextcloud/talk/controllers/GeocodingController.kt

@@ -195,6 +195,7 @@ class GeocodingController(args: Bundle) :
         return true
     }
 
+    @Suppress("Detekt.TooGenericExceptionCaught")
     private suspend fun executeGeocodingRequest() {
         var results: ArrayList<Address> = ArrayList()
         try {

+ 2 - 0
app/src/main/java/com/nextcloud/talk/controllers/LocationPickerController.kt

@@ -136,6 +136,7 @@ class LocationPickerController(args: Bundle) :
         initMap()
     }
 
+    @Suppress("Detekt.TooGenericExceptionCaught")
     override fun onDetach(view: View) {
         super.onDetach(view)
         try {
@@ -430,6 +431,7 @@ class LocationPickerController(args: Bundle) :
         return true
     }
 
+    @Suppress("Detekt.TooGenericExceptionCaught")
     private suspend fun executeGeocodingRequest(lat: Double, lon: Double) {
         var address: Address? = null
         try {