mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix file provider authorities modified incorrectly
This commit is contained in:
parent
698ee78c97
commit
d8bd05191c
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@
|
|||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="com.nkming.nc_photos.plugin.fileprovider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
|
|
|
@ -138,7 +138,7 @@ class MediaStoreChannelHandler(activity: Activity) :
|
|||
val fileUri = Uri.fromFile(file)
|
||||
triggerMediaScan(fileUri)
|
||||
val contentUri = FileProvider.getUriForFile(
|
||||
_context, "com.nkming.nc_photos.plugin.fileprovider", file
|
||||
_context, "${BuildConfig.APPLICATION_ID}.fileprovider", file
|
||||
)
|
||||
result.success(contentUri.toString())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue