mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Add placeholder for application ID to K9FileProvider
This commit is contained in:
parent
9659bee8c5
commit
15cb58fe42
@ -417,7 +417,7 @@
|
||||
|
||||
<provider
|
||||
android:name=".provider.K9FileProvider"
|
||||
android:authorities="com.fsck.k9.fileprovider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
|
||||
|
@ -7,9 +7,11 @@ import android.content.Context;
|
||||
import android.net.Uri;
|
||||
import android.support.v4.content.FileProvider;
|
||||
|
||||
import com.fsck.k9.BuildConfig;
|
||||
|
||||
|
||||
public class K9FileProvider extends FileProvider {
|
||||
private static final String AUTHORITY = "com.fsck.k9.fileprovider";
|
||||
private static final String AUTHORITY = BuildConfig.APPLICATION_ID + ".fileprovider";
|
||||
|
||||
public static Uri getUriForFile(Context context, File file, String mimeType) {
|
||||
Uri uri = FileProvider.getUriForFile(context, AUTHORITY, file);
|
||||
|
Loading…
Reference in New Issue
Block a user