diff options
Diffstat (limited to 'java/com/android/dialer/speeddial/loader/SpeedDialUiItem.java')
-rw-r--r-- | java/com/android/dialer/speeddial/loader/SpeedDialUiItem.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/com/android/dialer/speeddial/loader/SpeedDialUiItem.java b/java/com/android/dialer/speeddial/loader/SpeedDialUiItem.java index 28c22747e..65aa297f0 100644 --- a/java/com/android/dialer/speeddial/loader/SpeedDialUiItem.java +++ b/java/com/android/dialer/speeddial/loader/SpeedDialUiItem.java @@ -118,6 +118,15 @@ public abstract class SpeedDialUiItem { return builder.build(); } + /** + * The id of the corresponding SpeedDialEntry. Null if the UI item does not have an entry, for + * example suggested contacts (isStarred() will also be false) + * + * @see SpeedDialEntry#id() + */ + @Nullable + public abstract Long speedDialEntryId(); + /** @see android.provider.ContactsContract.Contacts#DISPLAY_NAME */ public abstract String name(); @@ -158,6 +167,9 @@ public abstract class SpeedDialUiItem { @AutoValue.Builder public abstract static class Builder { + /** Set to null if {@link #isStarred()} is false. */ + public abstract Builder setSpeedDialEntryId(@Nullable Long id); + public abstract Builder setName(String name); public abstract Builder setContactId(long contactId); |