diff options
author | ByteHamster <info@bytehamster.com> | 2017-10-21 23:53:50 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2017-10-21 23:53:50 +0200 |
commit | 82d4dacb117d59fec99f0fa08eaeeaa7af76bf8f (patch) | |
tree | 98a2c0756271c29a19fd784b6c5e21eeb88c5872 /app | |
parent | 33ea125489cf2aaa492ad0e9631b9aed85c45efe (diff) | |
download | AntennaPod-82d4dacb117d59fec99f0fa08eaeeaa7af76bf8f.zip |
Fix install of debug version by using unique provider
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 1 | ||||
-rw-r--r-- | app/src/main/AndroidManifest.xml | 2 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle index 09763fdbb..60e079665 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -72,6 +72,7 @@ android { debug { applicationIdSuffix ".debug" + resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider" buildConfigField STRING, FLATTR_APP_KEY, mFlattrAppKey buildConfigField STRING, FLATTR_APP_SECRET, mFlattrAppSecret } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e7938682e..d8c1ab137 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -373,7 +373,7 @@ </receiver> <provider - android:authorities="de.danoeh.antennapod.provider" + android:authorities="@string/provider_authority" android:name="android.support.v4.content.FileProvider" android:exported="false" android:grantUriPermissions="true"> diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java index 1e396b8a8..1ca0d0109 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java @@ -454,7 +454,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc emailIntent.putExtra(Intent.EXTRA_SUBJECT, "AntennaPod Crash Report"); emailIntent.putExtra(Intent.EXTRA_TEXT, "Please describe what you were doing when the app crashed"); // the attachment - Uri fileUri = FileProvider.getUriForFile(context, "de.danoeh.antennapod.provider", + Uri fileUri = FileProvider.getUriForFile(context, context.getString(R.string.provider_authority), CrashReportWriter.getFile()); emailIntent.putExtra(Intent.EXTRA_STREAM, fileUri); emailIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); |