public class AutofillSuggestion implements DropdownItem {
private final String mLabel;
private final String mSublabel;
+ private final int mIconId;
private final int mSuggestionId;
/**
* @param label The describing label of the Autofill suggestion.
* @param suggestionId The type of suggestion.
*/
- public AutofillSuggestion(String name, String label, int suggestionId) {
+ public AutofillSuggestion(String name, String label, int iconId, int suggestionId) {
mLabel = name;
mSublabel = label;
+ mIconId = iconId;
mSuggestionId = suggestionId;
}
}
@Override
+ public int getIconId() {
+ return mIconId;
+ }
+
+ @Override
public boolean isEnabled() {
return true;
}