summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/app/voicemail/error/VoicemailErrorMessage.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/dialer/app/voicemail/error/VoicemailErrorMessage.java')
-rw-r--r--java/com/android/dialer/app/voicemail/error/VoicemailErrorMessage.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/voicemail/error/VoicemailErrorMessage.java b/java/com/android/dialer/app/voicemail/error/VoicemailErrorMessage.java
index a0dd30f0b..92c787d2d 100644
--- a/java/com/android/dialer/app/voicemail/error/VoicemailErrorMessage.java
+++ b/java/com/android/dialer/app/voicemail/error/VoicemailErrorMessage.java
@@ -47,6 +47,7 @@ public class VoicemailErrorMessage {
private final List<Action> actions;
private boolean modal;
+ private Integer imageResourceId;
/** Something the user can click on to resolve an error, such as retrying or calling voicemail */
public static class Action {
@@ -100,6 +101,16 @@ public class VoicemailErrorMessage {
return this;
}
+ @Nullable
+ public Integer getImageResourceId() {
+ return imageResourceId;
+ }
+
+ public VoicemailErrorMessage setImageResourceId(Integer imageResourceId) {
+ this.imageResourceId = imageResourceId;
+ return this;
+ }
+
public VoicemailErrorMessage(CharSequence title, CharSequence description, Action... actions) {
this(title, description, Arrays.asList(actions));
}