Fixed
Status Update
Comments
da...@google.com <da...@google.com>
jo...@onsalesit.com <jo...@onsalesit.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
da...@google.com <da...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit e782987543a9f8ccd485e970ddc74564b24378db
Author: Vighnesh Raut <vighnesh.raut13@gmail.com>
Date: Mon Jan 02 15:27:40 2023
fix: tab row crashes when only 1 tab is added
Bug: b/264018028
Test: Added unit test
Change-Id: I6381dbac304fc1d69d3708c6655f8b595668e93f
M tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
M tv/tv-material/src/main/java/androidx/tv/material/TabRow.kt
https://android-review.googlesource.com/2373449
Branch: androidx-main
commit e782987543a9f8ccd485e970ddc74564b24378db
Author: Vighnesh Raut <vighnesh.raut13@gmail.com>
Date: Mon Jan 02 15:27:40 2023
fix: tab row crashes when only 1 tab is added
Bug:
Test: Added unit test
Change-Id: I6381dbac304fc1d69d3708c6655f8b595668e93f
M tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
M tv/tv-material/src/main/java/androidx/tv/material/TabRow.kt
Description
In Room 2.3.0-alpha04 built-in enum support was added via a enum to string type converter. If a user already has a type converter Room should prioritize using user defined converters but there is a bug where if a one-way out converter (from Cursor to Enum) is defined, Room might incorrectly use the built-in one causing issues. This bug track such problem
It was fixed byhttps://android-review.googlesource.com/c/platform/frameworks/support/+/1524200 , but didn't make it into the 2.3.0-alpha04 release but instead it will be available in the next upcoming release.
As a workaround and one can define a method, for the one-way write converter which will make Room effectively making a two-way converter for the Enum which Room will correctly priortize over the built-in one.