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

Try with media name if last Uri segment is empty

parent 90f0eb3c
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,9 @@ public class MediaWrapper implements Parcelable {
return;
String fileExt = null, filename = mUri.getLastPathSegment();
if (filename == null)
if (TextUtils.isEmpty(filename))
filename = mTitle;
if (TextUtils.isEmpty(filename))
return;
final int index = filename.indexOf('?');
if (index != -1)
......
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