Copy temp file if isMediaDocument contentUri is null (#5269)
This commit is contained in:
parent
f766f47358
commit
9e30de1ba7
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue