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

This commit is contained in:
Elias Nahum 2018-06-25 12:34:15 -04:00 committed by Saturnino Abril
parent 14e13dd6b6
commit 38b6816106

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