[Android] Media title: Catch UnsupportedOperationException
Geoffrey Métais
git at videolan.org
Fri May 18 16:47:20 CEST 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 18 15:15:08 2018 +0200| [9478a18fcdf6f528bb4a54293bfcbae919ac5da2] | committer: Geoffrey Métais
Media title: Catch UnsupportedOperationException
(cherry picked from commit 078a918f3321d60683ef7049599965b3913ddeca)
> https://code.videolan.org/videolan/vlc-android/commit/9478a18fcdf6f528bb4a54293bfcbae919ac5da2
---
vlc-android/src/org/videolan/vlc/media/MediaUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/media/MediaUtils.java b/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
index 82a5b909c..64dbb1f7a 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
+++ b/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
@@ -289,7 +289,7 @@ public class MediaUtils {
cursor.moveToFirst();
if (!cursor.isNull(nameIndex)) mw.setTitle(cursor.getString(nameIndex));
}
- } catch (SecurityException|IllegalArgumentException e) { // We may not have storage access permission yet
+ } catch (SecurityException|IllegalArgumentException|UnsupportedOperationException e) { // We may not have storage access permission yet
Log.w(TAG, "retrieveMediaTitle: fail to resolve file from "+mw.getUri(), e);
} finally {
if (cursor != null && !cursor.isClosed()) cursor.close();
More information about the Android
mailing list