Fixed
Status Update
Comments
al...@gmail.com <al...@gmail.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
zb...@gmail.com <zb...@gmail.com> #4
deleted
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
il...@google.com <il...@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
ke...@gmail.com <ke...@gmail.com> #6
Any update on when alpha03 will drop?
lb...@gmail.com <lb...@gmail.com> #7
@5 Are you suggesting that the start Fragment would just check which Fragment to navigate to right away, such as login/permissions/onboarding, vs the rest?
This Fragment won't have any UI ..
Why this weird solution, instead of just setting a new root to the graph and switch to it?
If at some point, for example, a core permission was found not to be granted, we could set to switch to the permissions Fragment and make it the new root.
Or, if the user has chosen to logout, we could set to switch to the login Fragment and make it the new root.
What you suggest is to just pop all to the same Fragment, and let it choose instead?
This Fragment won't have any UI ..
Why this weird solution, instead of just setting a new root to the graph and switch to it?
If at some point, for example, a core permission was found not to be granted, we could set to switch to the permissions Fragment and make it the new root.
Or, if the user has chosen to logout, we could set to switch to the login Fragment and make it the new root.
What you suggest is to just pop all to the same Fragment, and let it choose instead?
da...@gmail.com <da...@gmail.com> #8
Any news or updates? I change the startDestination and want to remove the first-started fragment, before go next. I can't do it. setPopUpTo doesn't work, popBackStack just closes the activity. From time to time I check the jetpack navigation - it becomes better, but it's still to raw. Old school navigation or Cicerone work simpler and better
Description
Version used: alpha02
Devices/Android versions reproduced on: Nexus 5 6.0
I have 3 fragments in my navigation graph. My goal is to navigate away from the first fragment and remove it from the backstack so that it is not reachable by pressing the back button. This works for any fragment that is not the first destination in the graph by calling setPopUpTo([destination], true) on NavOptions.Builder(), but it does not work when [destination] is the first destination in the graph. In the latter case, the first destination never gets popped.
Note: This was working with setClearTask(true) in alpha01.