From 2691cdfa8b2e64deb270f5869936cd79986e55f9 Mon Sep 17 00:00:00 2001 From: helencheuk Date: Tue, 2 Jan 2024 15:19:12 +0000 Subject: [PATCH] Configured color attribute properly for focus outline Bug: 310953377 Test: Manual Flag: ACONFIG com.android.launcher3.enable_focus_outline Development Change-Id: If85c33ecea3241e69927917e910386d0346ef43b --- res/values/attrs.xml | 1 + res/values/colors.xml | 1 - res/values/styles.xml | 1 + .../android/launcher3/keyboard/FocusIndicatorHelper.java | 6 ++++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/res/values/attrs.xml b/res/values/attrs.xml index e54539f1a7..754f0cbe47 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -42,6 +42,7 @@ + diff --git a/res/values/colors.xml b/res/values/colors.xml index db9631a5e4..6a484d784e 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -25,7 +25,6 @@ #FFF0592B #80c6c5c5 - @color/material_color_on_secondary_container #FF000000 diff --git a/res/values/styles.xml b/res/values/styles.xml index 36991b1f7a..b83be351a3 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -52,6 +52,7 @@ #40000000 #89000000 @style/WidgetContainerTheme + @color/material_color_on_secondary_container @color/folder_pagination_color_light @color/folder_preview_light @color/folder_background_light diff --git a/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java b/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java index 1a7d79755f..c36f4552e3 100644 --- a/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java +++ b/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java @@ -22,6 +22,7 @@ import android.view.View.OnFocusChangeListener; import com.android.launcher3.Flags; import com.android.launcher3.R; +import com.android.launcher3.util.Themes; /** * A helper class to draw background of a focused view. @@ -30,8 +31,9 @@ public abstract class FocusIndicatorHelper extends ItemFocusIndicatorHelper