From 1752ae72ce09b30244577ee0ee563caa5dbf871e Mon Sep 17 00:00:00 2001 From: Debashish Chatterjee Date: Tue, 5 Jul 2011 09:13:30 +0100 Subject: [PATCH] Introduced a common SOURCE_PACKAGE_FIELD in VoicemailContract class. This ensures that we use the same field name for both status and voicemail tables. Change-Id: I9f699939b8434bd41b5382e49dea63516cfce346 --- core/java/android/provider/VoicemailContract.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java index 8e7128b05d4fa..7ea0fbd84e644 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -68,6 +68,12 @@ public class VoicemailContract { */ public static final String EXTRA_SELF_CHANGE = "com.android.voicemail.extra.SELF_CHANGE"; + /** + * Name of the source package field, which must be same across all voicemail related tables. + * @hide + */ + public static final String SOURCE_PACKAGE_FIELD = "source_package"; + /** Defines fields exposed through the /voicemail path of this content provider. */ public static final class Voicemails implements BaseColumns { /** Not instantiable. */ @@ -118,7 +124,7 @@ public class VoicemailContract { * Package name of the source application that inserted the voicemail. *

Type: TEXT

*/ - public static final String SOURCE_PACKAGE = "source_package"; + public static final String SOURCE_PACKAGE = SOURCE_PACKAGE_FIELD; /** * Application-specific data available to the source application that * inserted the voicemail. This is typically used to store the source @@ -171,7 +177,7 @@ public class VoicemailContract { * The package name of the voicemail source. There can only be a one entry per source. *

Type: TEXT

*/ - public static final String SOURCE_PACKAGE = "source_package"; + public static final String SOURCE_PACKAGE = SOURCE_PACKAGE_FIELD; /** * The URI to call to invoke source specific voicemail settings screen. On a user request * to setup voicemail an intent with action VIEW with this URI will be fired by the system.