From bab130fb27948719cf6600ff22a10b19f78001df Mon Sep 17 00:00:00 2001 From: Ta-wei Yen Date: Wed, 16 Mar 2016 18:17:43 -0700 Subject: Rename provider authority for AOSP Dialer Authority name clash is preventing GoogleDialer from installing over AOSP dialer Authority for FileProvider is put in donottranslate_config.xml because it need to be shared with ContactsCommon Bug:27685485 Change-Id: I45a51639a85a00f58385e08221cb100ac66c2069 --- res/values/donottranslate_config.xml | 2 ++ src/com/android/dialer/database/VoicemailArchiveContract.java | 4 +++- src/com/android/dialerbind/ObjectFactory.java | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/res/values/donottranslate_config.xml b/res/values/donottranslate_config.xml index 468e41586..4ed41d0d5 100644 --- a/res/values/donottranslate_config.xml +++ b/res/values/donottranslate_config.xml @@ -34,4 +34,6 @@ Ignored if empty. --> + + com.android.dialer.files diff --git a/src/com/android/dialer/database/VoicemailArchiveContract.java b/src/com/android/dialer/database/VoicemailArchiveContract.java index 92d9c17ef..f332932c3 100644 --- a/src/com/android/dialer/database/VoicemailArchiveContract.java +++ b/src/com/android/dialer/database/VoicemailArchiveContract.java @@ -21,6 +21,8 @@ import android.provider.BaseColumns; import android.provider.CallLog; import android.provider.OpenableColumns; +import com.android.dialerbind.ObjectFactory; + /** * Contains definitions for the supported URIs and columns for the voicemail archive table. * All the fields excluding MIME_TYPE, _DATA, ARCHIVED, SERVER_ID, mirror the fields in the @@ -29,7 +31,7 @@ import android.provider.OpenableColumns; public final class VoicemailArchiveContract { /** The authority used by the voicemail archive provider. */ - public static final String AUTHORITY = "com.android.dialer.database.voicemailarchiveprovider"; + public static final String AUTHORITY = ObjectFactory.getVoicemailArchiveProviderAuthority(); /** A content:// style uri for the voicemail archive provider */ public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY); diff --git a/src/com/android/dialerbind/ObjectFactory.java b/src/com/android/dialerbind/ObjectFactory.java index d059d94d5..303610f30 100644 --- a/src/com/android/dialerbind/ObjectFactory.java +++ b/src/com/android/dialerbind/ObjectFactory.java @@ -20,7 +20,6 @@ import static com.android.dialer.calllog.CallLogAdapter.CallFetcher; import android.content.Context; import android.support.annotation.Nullable; -import android.view.ViewStub; import com.android.dialer.calllog.CallLogAdapter; import com.android.dialer.calllog.ContactInfoHelper; @@ -44,6 +43,10 @@ public class ObjectFactory { return "com.android.dialer.database.filterednumberprovider"; } + public static String getVoicemailArchiveProviderAuthority() { + return "com.android.dialer.database.voicemailarchiveprovider"; + } + public static boolean isVoicemailArchiveEnabled(Context context) { return false; } -- cgit v1.2.3