mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 03:15:39 +01:00
Prefer document provider type over shared type
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user