Skip to content

Commit 2fc8527

Browse files
authored
Fixes in-app camera behaviour (commons-app#5302)
1 parent ff7fa79 commit 2fc8527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/filepicker/UploadableFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public UploadableFile(Uri contentUri, File file) {
4141

4242
public UploadableFile(File file) {
4343
this.file = file;
44-
this.contentUri = Uri.parse(file.getAbsolutePath());
44+
this.contentUri = Uri.fromFile(new File(file.getPath()));
4545
}
4646

4747
public UploadableFile(Parcel in) {

0 commit comments

Comments
 (0)