Prefer document provider type over shared type

This commit is contained in:
M66B
2025-08-06 20:31:15 +02:00
parent 31f5d6ac19
commit e5587da8a2

View File

@@ -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);