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
This commit is contained in:
parent
f5dedeab81
commit
a38eb3e3d8
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ fun FocusableItemRow(
|
|||
if (focused) {
|
||||
MaterialTheme.colorScheme.border.copy(alpha = .25f)
|
||||
} else {
|
||||
Color.Unspecified
|
||||
Color.Transparent
|
||||
},
|
||||
)
|
||||
Column(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue