Prefer document provider type over shared type

master
M66B 1 month ago
parent 31f5d6ac19
commit e5587da8a2

@ -2984,8 +2984,8 @@ public class Helper {
result.name = uri.getUri().getLastPathSegment();
// Check type
if (uri.getType() != null)
result.type = uri.getType();
if (TextUtils.isEmpty(result.type) && uri.getType() != null)
result.type = uri.getType(); // Shared type when no document type
if (!TextUtils.isEmpty(result.type))
try {
new ContentType(result.type);

Loading…
Cancel
Save