Copy temp file if isMediaDocument contentUri is null (#5269) (#5271)

This commit is contained in:
Mattermost Build 2021-04-03 20:02:27 +02:00 committed by GitHub
parent c9e6cd8073
commit 77b3dfff2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,11 @@ public class RealPathUtil {
split[1]
};
return getDataColumn(context, contentUri, selection, selectionArgs);
if (contentUri != null) {
return getDataColumn(context, contentUri, selection, selectionArgs);
} else {
return getPathFromSavingTempFile(context, uri);
}
}
}