From a38eb3e3d88d0d9ebb7b6200d0e9cd809a4ed45a Mon Sep 17 00:00:00 2001 From: Damontecres Date: Wed, 7 Oct 2026 19:46:14 -0400 Subject: [PATCH] Fix possible crash on a few pages due to color space (#2036) ## Description Fixes a potential crash on any page that uses `HomePageContent`, such as home page, recommended tab, & customize home page. I think this is actually a bug in compose because it shouldn't pass `Color.Unspecified` into the native color code. But similarly, using `Color.Unspecified` in `animateColorAsState` doesn't make sense either. ### Related issues Fixes #1995 ### Testing I was able to reproduce this consistently using the Purple theme on customize home page by focusing on an empty row. This change doesn't cause the crash. ## Screenshots N/A ## AI or LLM usage None --- .../damontecres/wholphin/ui/components/FocusableItemRow.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/damontecres/wholphin/ui/components/FocusableItemRow.kt b/app/src/main/java/com/github/damontecres/wholphin/ui/components/FocusableItemRow.kt index b04bf451..811b0051 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/ui/components/FocusableItemRow.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/ui/components/FocusableItemRow.kt @@ -60,7 +60,7 @@ fun FocusableItemRow( if (focused) { MaterialTheme.colorScheme.border.copy(alpha = .25f) } else { - Color.Unspecified + Color.Transparent }, ) Column(