summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Debashish Chatterjee <debashishc@google.com> 2011-07-05 09:13:30 +0100
committer Debashish Chatterjee <debashishc@google.com> 2011-07-05 09:13:30 +0100
commit1752ae72ce09b30244577ee0ee563caa5dbf871e (patch)
treec26663b8a0b7129cc8473d9ecbdecc3996b86073
parent9b8dd63445b62783d544fef030518ce8a0fb0691 (diff)
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
-rw-r--r--core/java/android/provider/VoicemailContract.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java
index 8e7128b05d4f..7ea0fbd84e64 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.
* <P>Type: TEXT</P>
*/
- 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.
* <P>Type: TEXT</P>
*/
- 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.