Added FETCH_VOICEMAIL intent definition in VoicemailContract.
Content provider does not directly use this intent. But it is fired by the contacts app to request the voicemail source to fetch voicemail audio of a single voicemail message. The constant needs to live in the contracts file to serve as a common definition between contacts and voicemail source apps. Bug: 5114261 Change-Id: Ibf7b2a4c871d3561d2ca50d03f8182352fadd3ab
This commit is contained in:
@@ -17268,6 +17268,7 @@ package android.provider {
|
||||
}
|
||||
|
||||
public class VoicemailContract {
|
||||
field public static final java.lang.String ACTION_FETCH_VOICEMAIL = "android.intent.action.FETCH_VOICEMAIL";
|
||||
field public static final java.lang.String ACTION_NEW_VOICEMAIL = "android.intent.action.NEW_VOICEMAIL";
|
||||
field public static final java.lang.String AUTHORITY = "com.android.voicemail";
|
||||
field public static final java.lang.String EXTRA_SELF_CHANGE = "com.android.voicemail.extra.SELF_CHANGE";
|
||||
|
||||
@@ -78,6 +78,18 @@ public class VoicemailContract {
|
||||
/** Broadcast intent when a new voicemail record is inserted. */
|
||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
public static final String ACTION_NEW_VOICEMAIL = "android.intent.action.NEW_VOICEMAIL";
|
||||
|
||||
/**
|
||||
* Broadcast intent to request a voicemail source to fetch voicemail content of a specific
|
||||
* voicemail from the remote server. The voicemail to fetch is specified by the data uri
|
||||
* of the intent.
|
||||
* <p>
|
||||
* All voicemail sources are expected to handle this event. After storing the content
|
||||
* the application should also set {@link Voicemails#HAS_CONTENT} to 1;
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
public static final String ACTION_FETCH_VOICEMAIL = "android.intent.action.FETCH_VOICEMAIL";
|
||||
|
||||
/**
|
||||
* Extra included in {@link Intent#ACTION_PROVIDER_CHANGED} broadcast intents to indicate if the
|
||||
* receiving package made this change.
|
||||
|
||||
Reference in New Issue
Block a user