File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/utilcode/src/main/java/com/blankj/utilcode/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -177,13 +177,15 @@ else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT
177
177
return null ;
178
178
}// end 1_0
179
179
else if ("com.android.providers.downloads.documents" .equals (authority )) {
180
- final String id = DocumentsContract .getDocumentId (uri );
180
+ String id = DocumentsContract .getDocumentId (uri );
181
181
if (TextUtils .isEmpty (id )) {
182
182
Log .d ("UriUtils" , uri .toString () + " parse failed(id is null). -> 1_1" );
183
183
return null ;
184
184
}
185
185
if (id .startsWith ("raw:" )) {
186
186
return new File (id .substring (4 ));
187
+ } else if (id .startsWith ("msf:" )) {
188
+ id = id .split (":" )[1 ];
187
189
}
188
190
189
191
String [] contentUriPrefixesToTry = new String []{
You can’t perform that action at this time.
0 commit comments