Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
[Deleted User] <[Deleted User]> #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
th...@yaacomm.com <th...@yaacomm.com> #4
deleted
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.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
il...@google.com <il...@google.com> #6
We've added a hasDeepLink() API to NavDestination for checking whether a destination supports a particular deep link. It returns a boolean.
Description
Version used: 1.0.0-alpha05
Devices/Android versions reproduced on: N/A
There are use-cases that the app's deeplink will capture a more generic link and the try to dynamically handle it based on its parameters and such. One of the main factor for such approach is to be able to check if a specific uri is supported by the deeplinking in the graph or not. The `matchDeepLink()` method in `NavDestination` already does that but its a protected function.
Feature request: either make the matchDeeplink a public method or provide a boolean method to check if a uri is matched with any of the deeplinks in the app.