[Android] Improve error info for external intent opening
Nicolas Pomepuy
git at videolan.org
Tue Jan 5 08:03:35 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jan 5 08:59:37 2021 +0100| [7bcfa6624518c494ef6370c6a5e8537ce0c0cdc5] | committer: Nicolas Pomepuy
Improve error info for external intent opening
> https://code.videolan.org/videolan/vlc-android/commit/7bcfa6624518c494ef6370c6a5e8537ce0c0cdc5
---
application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt b/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
index b047b3273..b9cfbd259 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
@@ -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
More information about the Android
mailing list