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

This commit is contained in:
Elias Nahum 2021-04-03 14:53:54 -03:00 committed by GitHub
parent f766f47358
commit 9e30de1ba7
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);
}
}
}