Skip to content
Snippets Groups Projects
Commit 3b57804f authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Improve error info for external intent opening

(cherry picked from commit 7bcfa662)
parent f3b5ff4e
No related branches found
No related tags found
1 merge request!8843.3.x
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment