Commit 8f77748b authored by Clemens Arbesser's avatar Clemens Arbesser Committed by Commit Bot

[Autofill Assistant] Added visibility icons to enum.

Since it seems that we continue having problems with inflating vector
graphics, I'm adding these two icons to the enum as a stop-gap to avoid
blocking the PWM experience.

Bug: b/145043394
Change-Id: I848ce65807d244fe49102a5ed1fef32aec474a83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315138
Commit-Queue: Clemens Arbesser <arbesser@google.com>
Commit-Queue: Sandro Maggi <sandromaggi@google.com>
Auto-Submit: Clemens Arbesser <arbesser@google.com>
Reviewed-by: default avatarSandro Maggi <sandromaggi@google.com>
Cr-Commit-Position: refs/heads/master@{#791173}
parent 28a1f6be
......@@ -187,6 +187,10 @@ public abstract class AssistantDrawable {
return R.drawable.ic_directions_car_black_24dp;
case AssistantDrawableIcon.GROCERY:
return R.drawable.ic_grocery_black_24dp;
case AssistantDrawableIcon.VISIBILITY_ON:
return R.drawable.ic_visibility_black;
case AssistantDrawableIcon.VISIBILITY_OFF:
return R.drawable.ic_visibility_off_black;
}
return INVALID_ICON_ID;
......
......@@ -51,6 +51,10 @@ DrawableIcon MapDrawableIcon(DrawableProto::Icon icon) {
return DrawableIcon::CAR;
case DrawableProto::GROCERY:
return DrawableIcon::GROCERY;
case DrawableProto::VISIBILITY_ON:
return DrawableIcon::VISIBILITY_ON;
case DrawableProto::VISIBILITY_OFF:
return DrawableIcon::VISIBILITY_OFF;
}
}
......
......@@ -37,6 +37,8 @@ enum class DrawableIcon {
KEY = 11,
CAR = 12,
GROCERY = 13,
VISIBILITY_ON = 14,
VISIBILITY_OFF = 15,
};
} // namespace autofill_assistant
......
......@@ -89,6 +89,8 @@ message DrawableProto {
KEY = 11;
CAR = 12;
GROCERY = 13;
VISIBILITY_ON = 14;
VISIBILITY_OFF = 15;
}
oneof drawable {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment