Skip to content
Snippets Groups Projects
Commit 078a918f authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Media title: Catch UnsupportedOperationException

parent f04eb8b7
No related branches found
No related tags found
No related merge requests found
......@@ -330,7 +330,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();
......
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