diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2017-10-22 07:38:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-22 07:38:29 +0200 |
commit | ee24c39fcab37751ec60834e24be3ab5ae229271 (patch) | |
tree | d7d36efbe7681e156d26a3670cda90e57206c973 /app | |
parent | 325c46715daa69605c9646f33ce577a246106ca2 (diff) | |
parent | 82d4dacb117d59fec99f0fa08eaeeaa7af76bf8f (diff) | |
download | AntennaPod-ee24c39fcab37751ec60834e24be3ab5ae229271.zip |
Merge pull request #2461 from ByteHamster/fix-debug-provider
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 222c34dda..807cea127 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); |