Fix issue #184
This commit is contained in:
parent
f29715eec8
commit
4feb954612
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<external-path name="my_images" path="Android/data/fr.gouv.etalab.mastodon/files/Pictures" />
|
||||
</paths>
|
|
@ -906,15 +906,9 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
|||
}
|
||||
// Continue only if the File was successfully created
|
||||
if (photoFile != null) {
|
||||
if (!BuildConfig.DONATIONS) {
|
||||
photoFileUri = FileProvider.getUriForFile(this,
|
||||
"app.fedilab.android.fileProvider",
|
||||
photoFile);
|
||||
}else {
|
||||
photoFileUri = FileProvider.getUriForFile(this,
|
||||
"fr.gouv.etalab.mastodon.fileProvider",
|
||||
photoFile);
|
||||
}
|
||||
photoFileUri = FileProvider.getUriForFile(this,
|
||||
"app.fedilab.android.fileProvider",
|
||||
photoFile);
|
||||
takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoFileUri);
|
||||
startActivityForResult(takePictureIntent, TAKE_PHOTO);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue