Fixed
Status Update
Comments
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
jb...@google.com <jb...@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
Component used: Navigation
Version used: 2.3.5.
Devices/Android versions reproduced on: all
I'm facing an inconsistent behaviour when using the generated safe args as opposed to the deeplink strategy.
Say I have following navigation graph:
I have defined 2 ways to navigate to the
DeepLinkFragment
:action_home_dest_to_deeplink_dest
example://my-deelink-frag?myArg={myarg}
In the
DeepLinkFragment
I'm using thenavArgs()
function to de-serialize the incomingBundle
and show a simpleToast
message.When navigating with the generated safe args I can sent an empty string as the value for
myArg
. No problem.However, when navigating with an empty string as argument via the deeplink way:
I get following stacktrace:
Which is coming from the generated
DeeplinkFragmentArgs
codeAs a fix I could add the safe args .
android:defaultValue
.However I feel like this is a bug since it is possible with the