Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
ap...@google.com <ap...@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
gm...@gmail.com <gm...@gmail.com> #5
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.tv:tv-material:1.0.0-alpha04
gm...@gmail.com <gm...@gmail.com> #6
Re-tested with 2.4.2 & 2.5.0-beta01 in Bumblebee:
It still works, but Lint now shows two warnings. The second one is in nav_graph.xml
for action argument: Element argument is not allowed here
Description
Component used: Navigation Version used: 2.3.5
It is often convenient to specify default argument values in an action , for example when multiple actions point to the same destination.
Sometimes we only specify values for some arguments:
We then would like to call it like this:
FirstFragmentDirections.goToSecond("one!")
.But unfortunately, SafeArgs generates code with parameters in the wrong order:
argTwo
(with default value), thenargOne
. See attached project.I suppose better options would be to: