Use conditional stroke color for taskbak overflow entrypoint

Bug: 383556682
Flag: com.android.launcher3.taskbar_overflow
Test: manual
Change-Id: I3f2d0812e3a0004c76a5597fa9b359f7a0918195
This commit is contained in:
Artsiom Mitrokhin committed 2025-01-07 10:37:57 -05:00
1 parent 389d70bff6
commit 4d3a1a4370
1 file changed
+3 -2
@@ -39,7 +39,6 @@ import androidx.annotation.VisibleForTesting;
import androidx.core.graphics.ColorUtils;
import com.android.app.animation.Interpolators;
import com.android.launcher3.R;
import com.android.launcher3.Reorderable;
import com.android.launcher3.Utilities;
import com.android.launcher3.icons.IconNormalizer;
@@ -243,7 +242,9 @@ public class TaskbarOverflowView extends FrameLayout implements Reorderable {
private void init() {
mIsRtlLayout = Utilities.isRtl(getResources());
mItemBackgroundPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mItemBackgroundColor = getContext().getColor(R.color.taskbar_background);
mItemBackgroundColor = getContext().getColor(Utilities.isDarkTheme(getContext())
? com.android.internal.R.color.materialColorSurface
: com.android.internal.R.color.materialColorInverseOnSurface);
mLeaveBehindColor = Themes.getAttrColor(getContext(), android.R.attr.textColorTertiary);
setWillNotDraw(false);