Fixed
Status Update
Comments
ma...@google.com <ma...@google.com> #2
Over to Sean to triage appropriately.
We need to remove internal typealias from public APIs.
xu...@gmail.com <xu...@gmail.com> #3
Is there a plan to fix it?
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit 044ee82a4c1d0e4ca8fce039c535aa684baabc9d
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Mar 01 14:10:13 2022
Remove exposed internal ActionCallback typealias
Previously TextToolbar exposed ActionCallback on parameters of
public open methods.
This was never satisfyable without introducing a parallel typealias, as
it was internal.
This removes ActionCallback and replaces all usages with the type.
Bug: b/197950089
Test: No code changes (inline typealias)
Relnote: "TextToolbar now takes lambda arguments instead of
ActionCallback fixing b/197950089 "
Change-Id: Ib2eb9d370cd6a22bbfbdec0d2cb536302ea43d6a
M compose/ui/ui/api/restricted_current.ignore
M compose/ui/ui/api/current.ignore
M compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/DefaultTextToolbar.skiko.kt
M compose/ui/ui/api/restricted_current.txt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/platform/TextToolbar.kt
M compose/ui/ui/api/current.txt
M compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidTextToolbar.android.kt
M compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/actionmodecallback/TextActionModeCallback.android.kt
M compose/ui/ui/api/public_plus_experimental_current.txt
https://android-review.googlesource.com/2004851
Branch: androidx-main
commit 044ee82a4c1d0e4ca8fce039c535aa684baabc9d
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Mar 01 14:10:13 2022
Remove exposed internal ActionCallback typealias
Previously TextToolbar exposed ActionCallback on parameters of
public open methods.
This was never satisfyable without introducing a parallel typealias, as
it was internal.
This removes ActionCallback and replaces all usages with the type.
Bug:
Test: No code changes (inline typealias)
Relnote: "TextToolbar now takes lambda arguments instead of
ActionCallback fixing
Change-Id: Ib2eb9d370cd6a22bbfbdec0d2cb536302ea43d6a
M compose/ui/ui/api/restricted_current.ignore
M compose/ui/ui/api/current.ignore
M compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/DefaultTextToolbar.skiko.kt
M compose/ui/ui/api/restricted_current.txt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/platform/TextToolbar.kt
M compose/ui/ui/api/current.txt
M compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidTextToolbar.android.kt
M compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/actionmodecallback/TextActionModeCallback.android.kt
M compose/ui/ui/api/public_plus_experimental_current.txt
Description
Jetpack Compose release version: 1.0.1
I'd like to implement object for
TextToolbar
interface to present custom text toolbar. I'm doing it like this:But I'm getting next error:
I was able to fix it by implementing typealias with the same name
But I think it's a mistake, and it should be public.