mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-25 00:14:42 +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
|
<provider
|
||||||
android:name="androidx.core.content.FileProvider"
|
android:name="androidx.core.content.FileProvider"
|
||||||
android:authorities="com.nkming.nc_photos.plugin.fileprovider"
|
android:authorities="${applicationId}.fileprovider"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:grantUriPermissions="true">
|
android:grantUriPermissions="true">
|
||||||
<meta-data
|
<meta-data
|
||||||
|
|
|
@ -138,7 +138,7 @@ class MediaStoreChannelHandler(activity: Activity) :
|
||||||
val fileUri = Uri.fromFile(file)
|
val fileUri = Uri.fromFile(file)
|
||||||
triggerMediaScan(fileUri)
|
triggerMediaScan(fileUri)
|
||||||
val contentUri = FileProvider.getUriForFile(
|
val contentUri = FileProvider.getUriForFile(
|
||||||
_context, "com.nkming.nc_photos.plugin.fileprovider", file
|
_context, "${BuildConfig.APPLICATION_ID}.fileprovider", file
|
||||||
)
|
)
|
||||||
result.success(contentUri.toString())
|
result.success(contentUri.toString())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue