Merge "Use theme color for screenshot UI icons" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8ef899b9a7
@@ -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"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user