From 110e5c3753fc314b37744e48bb180d7b5cfec735 Mon Sep 17 00:00:00 2001 From: tom79 Date: Tue, 16 Jul 2019 09:42:11 +0200 Subject: [PATCH] Fix issue when free app was previously installed. --- app/src/main/AndroidManifest.xml | 2 +- .../android/activities/TootActivity.java | 25 ++++++++++++++----- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f00c93627..63be39588 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -326,7 +326,7 @@ /> 0) { tempOut.write(buff, 0, read); } - uri = FileProvider.getUriForFile(this, - "app.fedilab.android.fileProvider", - file); + if(BuildConfig.DONATIONS) { + uri = FileProvider.getUriForFile(this, + "fr.gouv.etalab.mastodon.fileProvider", + file); + }else{ + uri = FileProvider.getUriForFile(this, + "app.fedilab.android.fileProvider", + file); + } tempInput.close(); tempOut.close(); } catch(IOException e) {