1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Add placeholder for application ID to K9FileProvider

This commit is contained in:
cketti 2015-02-17 00:58:03 +01:00
parent 9659bee8c5
commit 15cb58fe42
2 changed files with 4 additions and 2 deletions

View File

@ -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">

View File

@ -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);