Always create a temp file for Android share (#1824)

This commit is contained in:
Elias Nahum 2018-06-25 12:34:15 -04:00
parent 6446b370d2
commit abd67c1bec
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -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())) {