Commit 078a918f authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Media title: Catch UnsupportedOperationException

parent f04eb8b7
...@@ -330,7 +330,7 @@ public class MediaUtils { ...@@ -330,7 +330,7 @@ public class MediaUtils {
cursor.moveToFirst(); cursor.moveToFirst();
if (!cursor.isNull(nameIndex)) mw.setTitle(cursor.getString(nameIndex)); 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); Log.w(TAG, "retrieveMediaTitle: fail to resolve file from "+mw.getUri(), e);
} finally { } finally {
if (cursor != null && !cursor.isClosed()) cursor.close(); if (cursor != null && !cursor.isClosed()) cursor.close();
......
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