This commit is contained in:
Thibault Deckers 2022-07-10 22:28:43 +02:00
parent 1d9d699998
commit f154278bf9
2 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ class StorageHandler(private val context: Context) : MethodCallHandler {
) )
) )
} }
} catch (e: IllegalArgumentException) { } catch (e: Exception) {
// ignore // ignore
} }
} }
@ -80,7 +80,7 @@ class StorageHandler(private val context: Context) : MethodCallHandler {
"state" to EnvironmentCompat.getStorageState(volumeFile) "state" to EnvironmentCompat.getStorageState(volumeFile)
) )
) )
} catch (e: IllegalArgumentException) { } catch (e: Exception) {
// ignore // ignore
} }
} }

View file

@ -290,7 +290,7 @@ object StorageUtils {
if (volume != null && uuid.equals(volume.uuid, ignoreCase = true)) { if (volume != null && uuid.equals(volume.uuid, ignoreCase = true)) {
return volumePath return volumePath
} }
} catch (e: IllegalArgumentException) { } catch (e: Exception) {
// ignore // ignore
} }
} }