Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
be...@gmail.com <be...@gmail.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
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #4
deleted
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
fe...@gmail.com <fe...@gmail.com> #6
I have the same error on screen rotation:
Caused by: java.lang.IllegalStateException: unknown destination during restore: com.example.fcruzgo.servicioscasabolsa2.login:id/login_graph
In my case I add the graph from a dinamic module by reflection:
val navController: NavController = findNavController(R.id.nav_host_fragment)
val loginGraph = resources.getIdentifier("login_graph", "navigation", packageName + ".login")
val destinationGraph = navController.navInflater.inflate(loginGraph)
navController.graph.addDestination(destinationGraph)
then I use destinationGraph.id to navigate to the destination, in this case the login graph that containts the login fragment.
Caused by: java.lang.IllegalStateException: unknown destination during restore: com.example.fcruzgo.servicioscasabolsa2.login:id/login_graph
In my case I add the graph from a dinamic module by reflection:
val navController: NavController = findNavController(R.id.nav_host_fragment)
val loginGraph = resources.getIdentifier("login_graph", "navigation", packageName + ".login")
val destinationGraph = navController.navInflater.inflate(loginGraph)
navController.graph.addDestination(destinationGraph)
then I use destinationGraph.id to navigate to the destination, in this case the login graph that containts the login fragment.
fe...@gmail.com <fe...@gmail.com> #7
I have the same error on screen rotation:
Caused by: java.lang.IllegalStateException: unknown destination during restore: com.example.fcruzgo.servicioscasabolsa2.login:id/login_graph
In my case I add the graph from a dinamic module by reflection:
val navController: NavController = findNavController(R.id.nav_host_fragment)
val loginGraph = resources.getIdentifier("login_graph", "navigation", packageName + ".login")
val destinationGraph = navController.navInflater.inflate(loginGraph)
navController.graph.addDestination(destinationGraph)
then I use destinationGraph.id to navigate to the destination, in this case the login graph that containts the login fragment.
Component used: Navigation
Version used: 2.1.0-alpha05
Caused by: java.lang.IllegalStateException: unknown destination during restore: com.example.fcruzgo.servicioscasabolsa2.login:id/login_graph
In my case I add the graph from a dinamic module by reflection:
val navController: NavController = findNavController(R.id.nav_host_fragment)
val loginGraph = resources.getIdentifier("login_graph", "navigation", packageName + ".login")
val destinationGraph = navController.navInflater.inflate(loginGraph)
navController.graph.addDestination(destinationGraph)
then I use destinationGraph.id to navigate to the destination, in this case the login graph that containts the login fragment.
Component used: Navigation
Version used: 2.1.0-alpha05
th...@gmail.com <th...@gmail.com> #8
I still get this issue with navigation library 2.2.0 even though it says it was fixed in 2.1.0
il...@google.com <il...@google.com> #9
Re #6, #7 - please file a new bug with a sample project that reproduces your issue.
vi...@gmail.com <vi...@gmail.com> #10
Any updates on this bug? having this issue even after updating to 2.2.0
il...@google.com <il...@google.com> #11
Re #10 - We have not received any reproducible sample projects with 2.2.0 that exhibit this issue. Please file a new bug with a sample project if you have one and we can take a look.
Description
Version used: 1.0.0
Devices/Android versions reproduced on: Pixel 2 API 28
Upon screen rotation (or activity recreation), the app crashes after following a few simple steps.
Steps to reproduce (see screen recording) :
1. Click on List to navigate to ListFragment
2. Click on Main to navigate to MainFragment
3. Rotate screen
Navigation features :
- NavigationUI
- Conditional navigation
- Nested graphs
- Global action with popUpTo and popUpToInclusive