We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3befa9b commit f9dc1ecCopy full SHA for f9dc1ec
lib/utilcode/src/main/java/com/blankj/utilcode/util/UriUtils.java
@@ -177,13 +177,15 @@ else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT
177
return null;
178
}// end 1_0
179
else if ("com.android.providers.downloads.documents".equals(authority)) {
180
- final String id = DocumentsContract.getDocumentId(uri);
+ String id = DocumentsContract.getDocumentId(uri);
181
if (TextUtils.isEmpty(id)) {
182
Log.d("UriUtils", uri.toString() + " parse failed(id is null). -> 1_1");
183
184
}
185
if (id.startsWith("raw:")) {
186
return new File(id.substring(4));
187
+ } else if (id.startsWith("msf:")) {
188
+ id = id.split(":")[1];
189
190
191
String[] contentUriPrefixesToTry = new String[]{
0 commit comments