summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/current.txt1
-rw-r--r--api/system-current.txt1
-rw-r--r--telecomm/java/android/telecom/Voicemail.java10
3 files changed, 12 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 4e51621..8c58a02 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -29056,6 +29056,7 @@ package android.telecom {
public class Voicemail implements android.os.Parcelable {
method public static android.telecom.Voicemail.Builder createForInsertion(long, java.lang.String);
+ method public static android.telecom.Voicemail.Builder createForUpdate(long, java.lang.String);
method public int describeContents();
method public long getDuration();
method public long getId();
diff --git a/api/system-current.txt b/api/system-current.txt
index d0dd852..fa68b80 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -31374,6 +31374,7 @@ package android.telecom {
public class Voicemail implements android.os.Parcelable {
method public static android.telecom.Voicemail.Builder createForInsertion(long, java.lang.String);
+ method public static android.telecom.Voicemail.Builder createForUpdate(long, java.lang.String);
method public int describeContents();
method public long getDuration();
method public long getId();
diff --git a/telecomm/java/android/telecom/Voicemail.java b/telecomm/java/android/telecom/Voicemail.java
index 864c6b1..a884c5f 100644
--- a/telecomm/java/android/telecom/Voicemail.java
+++ b/telecomm/java/android/telecom/Voicemail.java
@@ -57,6 +57,16 @@ public class Voicemail implements Parcelable {
}
/**
+ * Create a {@link Builder} for a {@link Voicemail} to be updated (or deleted).
+ * <p>
+ * The id and source data fields are mandatory for update - id is necessary for updating the
+ * database and source data is necessary for updating the server.
+ */
+ public static Builder createForUpdate(long id, String sourceData) {
+ return new Builder().setId(id).setSourceData(sourceData);
+ }
+
+ /**
* Builder pattern for creating a {@link Voicemail}. The builder must be created with the
* {@link #createForInsertion(long, String)} method.
* <p>