Commit 7bcfa662 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy

Improve error info for external intent opening

parent 875589ea
Pipeline #54532 passed with stage
in 3 minutes and 25 seconds
......@@ -399,19 +399,19 @@ object FileUtils {
// returnCursor.close();
// }
} catch (e: FileNotFoundException) {
Log.e(TAG, "Couldn't understand the intent")
Log.e(TAG, "${e.message} for $data", e)
return null
} catch (e: IllegalArgumentException) {
Log.e(TAG, "Couldn't understand the intent")
Log.e(TAG, "${e.message} for $data", e)
return null
} catch (e: IllegalStateException) {
Log.e(TAG, "Couldn't understand the intent")
Log.e(TAG, "${e.message} for $data", e)
return null
} catch (e: NullPointerException) {
Log.e(TAG, "Couldn't understand the intent")
Log.e(TAG, "${e.message} for $data", e)
return null
} catch (e: SecurityException) {
Log.e(TAG, "Permission is no longer valid")
Log.e(TAG, "${e.message} for $data", e)
return null
}
}// Media or MMS URI
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment