Commit 9478a18f authored by Geoffrey Métais's avatar Geoffrey Métais

Media title: Catch UnsupportedOperationException

(cherry picked from commit 078a918f)
parent 617af144
......@@ -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();
......
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