mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
fixed crash while uploadiing certain images (#1388)
This commit is contained in:
parent
b017d1c99a
commit
f80311d9f6
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ public class FileUtils {
|
|||
|
||||
final String id = DocumentsContract.getDocumentId(uri);
|
||||
final Uri contentUri = ContentUris.withAppendedId(
|
||||
Uri.parse("content://downloads/public_downloads"), Long.valueOf(id));
|
||||
Uri.parse("content://downloads/document"), Long.valueOf(id));
|
||||
|
||||
returnPath = getDataColumn(context, contentUri, null, null);
|
||||
} else if (isMediaDocument(uri)) { // MediaProvider
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue