Commit f3a96fa4 authored by Tiger Oakes's avatar Tiger Oakes Committed by Arturo Mejia
Browse files

Fixes #3705 - Fix conflicting authorities

parent cb65073d
......@@ -5,7 +5,7 @@
package="mozilla.components.feature.prompts">
<application>
<provider
android:authorities="mozilla.components.feature.prompts.fileprovider"
android:authorities="${applicationId}.fileprovider"
android:name="androidx.core.content.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
......
......@@ -52,7 +52,7 @@ internal sealed class MimeType(
return null
}
val photoUri = getUri(context, FILE_PROVIDER_AUTHORITY, photoFile)
val photoUri = getUri(context, "${context.packageName}.fileprovider", photoFile)
return intent.apply { putExtra(EXTRA_OUTPUT, photoUri) }.addCaptureHint(request.captureMode)
}
......@@ -121,7 +121,6 @@ internal sealed class MimeType(
const val USE_FRONT_CAMERA = "android.intent.extra.USE_FRONT_CAMERA"
const val LENS_FACING_BACK = "android.intent.extras.LENS_FACING_BACK"
const val USE_BACK_CAMERA = "android.intent.extra.USE_BACK_CAMERA"
const val FILE_PROVIDER_AUTHORITY = "mozilla.components.feature.prompts.fileprovider"
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment