summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
author Andrey Epin <ayepin@google.com> 2023-02-07 07:45:00 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-02-07 07:45:00 +0000
commit713a8d691826163bcb5695832e87f154a05fa050 (patch)
tree3b03de7849c045a7876a92fc360f3cdf8fac2b6a /java/src
parentede473e7fca58b254e4ed2890309458167c68e1f (diff)
parentb4d44a2f5f9a6b07f56f2312d583921a9eff0b2b (diff)
Explicitly tint chooser action icons am: b4d44a2f5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/IntentResolver/+/21307060 Change-Id: I11a95401b0396d70270c75897eabc4629e8f67dc 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.kt7
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 {