Status Update
Comments
jb...@google.com <jb...@google.com>
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
cl...@google.com <cl...@google.com> #3
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
je...@gmail.com <je...@gmail.com> #4
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
lu...@gmail.com <lu...@gmail.com> #6
I got the same issue as
Even if regular enums are implicitly Serializable
, you still need to add it or the issue Ensure that the serialName for this argument is the default fully qualified name
will appear.
package org.jdc.template.ux.test
@Serializable
enum class TestEnum {
ONE,
TWO
}
@Serializable
data class TestRoute(
val testEnum: TestEnum
)
You will also need to specified type in the declaration of your route:
composable<Route.TestRoute>(
typeMap = mapOf(
typeOf<TestEnum>() to NavType.EnumType(TestEnum::class.java)
),
) {
...
}
During my investigations, I've found that if you declare it like this:
package org.jdc.template.ux.test
@Serializable
data class TestRoute(
val testEnum: TestEnum
) {
enum class TestEnum {
ONE,
TWO
}
}
It will work on non-minified code, but it won't after minifying and you will get same error as before.
pr...@google.com <pr...@google.com> #8
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.navigation:navigation-common:2.8.0-beta07
androidx.navigation:navigation-runtime:2.8.0-beta07
Description
Component used: Navigation: androidx.navigation:navigation-compose
Version used: 2.8.0-beta02
Per Ian's comment here https://issuetracker.google.com/issues/346505952#comment2 it should not be needed.
Repro here:https://github.com/hrach/navigation-compose/commit/6342c95cc0c57a5e8598f92241d59a658c538071