diff options
| author | 2023-02-07 08:21:42 +0000 | |
|---|---|---|
| committer | 2023-02-07 08:21:42 +0000 | |
| commit | d1603f0d96f114e7337991dd13b7a05e24e484dd (patch) | |
| tree | 99eea75eb06802c8ceb305ad2dd0a33b6ca476c2 /java/src | |
| parent | 9f5489d8213f4ff6259c43b076d9538db83180d0 (diff) | |
| parent | 713a8d691826163bcb5695832e87f154a05fa050 (diff) | |
Explicitly tint chooser action icons am: b4d44a2f5f am: 713a8d6918
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/IntentResolver/+/21307060
Change-Id: I03605449a845a9ffca6eddc29e0da54bafee2ae1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/src')
| -rw-r--r-- | java/src/com/android/intentresolver/widget/ScrollableActionRow.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/intentresolver/widget/ScrollableActionRow.kt b/java/src/com/android/intentresolver/widget/ScrollableActionRow.kt index 81630545..f2a8b9e8 100644 --- a/java/src/com/android/intentresolver/widget/ScrollableActionRow.kt +++ b/java/src/com/android/intentresolver/widget/ScrollableActionRow.kt @@ -88,11 +88,12 @@ class ScrollableActionRow : RecyclerView, ActionRow { ) : RecyclerView.ViewHolder(view) { fun bind(action: ActionRow.Action) { - if (action.icon != null) { - action.icon.setBounds(0, 0, iconSize, iconSize) + action.icon?.let { icon -> + icon.setBounds(0, 0, iconSize, iconSize) // some drawables (edit) does not gets tinted when set to the top of the text // with TextView#setCompoundDrawableRelative - view.setCompoundDrawablesRelative(null, action.icon, null, null) + tintIcon(icon, view) + view.setCompoundDrawablesRelative(null, icon, null, null) } view.text = action.label ?: "" view.setOnClickListener { |