From ebef8eccb91d705887a3dc3887b89cb28e63cfa6 Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 17 Feb 2015 00:45:36 +0100 Subject: [PATCH] Add missing placeholder for application ID --- .../main/java/com/fsck/k9/provider/AttachmentProvider.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/k9mail/src/main/java/com/fsck/k9/provider/AttachmentProvider.java b/k9mail/src/main/java/com/fsck/k9/provider/AttachmentProvider.java index d59de5592..89d1fec69 100644 --- a/k9mail/src/main/java/com/fsck/k9/provider/AttachmentProvider.java +++ b/k9mail/src/main/java/com/fsck/k9/provider/AttachmentProvider.java @@ -11,6 +11,7 @@ import android.net.Uri; import android.os.ParcelFileDescriptor; import android.util.Log; import com.fsck.k9.Account; +import com.fsck.k9.BuildConfig; import com.fsck.k9.K9; import com.fsck.k9.Preferences; import com.fsck.k9.mail.MessagingException; @@ -31,7 +32,8 @@ import java.util.List; *

*/ public class AttachmentProvider extends ContentProvider { - public static final Uri CONTENT_URI = Uri.parse("content://com.fsck.k9.attachmentprovider"); + private static final String AUTHORITY = BuildConfig.APPLICATION_ID + ".attachmentprovider"; + public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); private static final String FORMAT_RAW = "RAW"; private static final String FORMAT_VIEW = "VIEW";