Merge "Use theme color for screenshot UI icons" into rvc-qpr-dev

This commit is contained in:
Miranda Kephart
2020-08-17 15:05:03 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 3 deletions

View File

@@ -32,6 +32,7 @@
android:gravity="center">
<ImageView
android:id="@+id/screenshot_action_chip_icon"
android:tint="@*android:color/accent_device_default"
android:layout_width="@dimen/screenshot_action_chip_icon_size"
android:layout_height="@dimen/screenshot_action_chip_icon_size"
android:layout_marginStart="@dimen/screenshot_action_chip_padding_start"

View File

@@ -65,10 +65,10 @@ public class ScreenshotActionChip extends FrameLayout {
}
void setIcon(Icon icon, boolean tint) {
if (tint) {
icon.setTint(mIconColor);
}
mIcon.setImageIcon(icon);
if (!tint) {
mIcon.setImageTintList(null);
}
}
void setText(CharSequence text) {