Always create a temp file for Android share (#1824)
This commit is contained in:
parent
14e13dd6b6
commit
38b6816106
1 changed files with 0 additions and 10 deletions
|
|
@ -73,16 +73,6 @@ public class RealPathUtil {
|
|||
return uri.getLastPathSegment();
|
||||
}
|
||||
|
||||
try {
|
||||
String path = getDataColumn(context, uri, null, null);
|
||||
|
||||
if (path != null) {
|
||||
return path;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// do nothing and try to get a temp file
|
||||
}
|
||||
|
||||
// Try save to tmp file, and return tmp file path
|
||||
return getPathFromSavingTempFile(context, uri);
|
||||
} else if ("file".equalsIgnoreCase(uri.getScheme())) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue