This commit is contained in:
tom79 2019-06-03 19:05:36 +02:00
parent f29715eec8
commit 4feb954612
3 changed files with 7 additions and 9 deletions

View File

@ -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>

View File

@ -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);
}