Commit 5def9286 authored by Geoffrey Métais's avatar Geoffrey Métais

Try with media name if last Uri segment is empty

parent 90f0eb3c
......@@ -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)
......
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