Status Update
Comments
mg...@google.com <mg...@google.com>
mg...@google.com <mg...@google.com> #2
ap...@google.com <ap...@google.com> #3
ap...@google.com <ap...@google.com> #4
In one project, I'm using the Navigation Component. The graph is just two fragments: A1 is the start destination with a deep-link to A2. I see A1 show momentarily if I use postponeEnterTransition in A2. And I see similar results in another project that does its own fragment transactions; in that case, I can use setReorderingAllowed(false) to prevent the issue.
ap...@google.com <ap...@google.com> #5
This has been fixed internally and will be avilable in Fragment 1.3.0-alpha08.
Note: this fix relies on using the
au...@google.com <au...@google.com> #6
Can you explain further what the issue is in #2?
mg...@google.com <mg...@google.com> #7
We have an RestrictTo
in common
.
There's an RestrictTo
in nonJvm
.
However, in android
, we have an
Annotation
RestrictTo(...)
is missing on actual declaration.
The issue is that RestrictTo
needs to be in the common source (since the type is restricted), but RestrictTo
currently cannot target typealias
(see AnnotationTarget.TYPEALIAS
to
That said, I'm not sure what RestrictTo
would mean when applied to a typealias
, since the aliased type itself may not be restricted.
As far as I know, this warning cannot be suppressed with @Suppress("...")
om...@google.com <om...@google.com> #8
Why dont we just switch from a typealias to an actual class implementation that just delegates to the Java one. See
ap...@google.com <ap...@google.com> #9
Project: platform/frameworks/support
Branch: androidx-main
Author: Omar Ismail <
Link:
switch from a typealias to an actual class impl that delegates to the Java class
Expand for full commit details
switch from a typealias to an actual class impl that delegates to the Java class
This removes the error we see in b/397736115
BUG: 397736115
TESTED: Ran ./gradlew :lifecycle:lifecycle-common:compileKotlinJvm and no warnings appeared
Change-Id: I6abbf31029af2e92360dbc3ce0da34cccac3bbc5
Files:
- M
lifecycle/integration-tests/kotlintestapp/lint-baseline.xml
- M
lifecycle/lifecycle-common/src/jvmMain/kotlin/androidx/lifecycle/Lifecycle.jvm.kt
Hash: b3d343bfbea66190f4d989690c9832fee9a7cbb0
Date: Thu Mar 06 15:19:13 2025
Description
AndroidX is preparing to move to target Kotlin language version 2.0. In order to make this transition smooth, please help fix these warnings ahead of this switch. You can reproduce it with the following command: