-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: IllegalStateException: AppCompatDialog#addContentView(AbstractComposeView(...), ...) #686
Conversation
appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/AppCompatDialogTest.kt
Outdated
Show resolved
Hide resolved
Hi @ianhanniballake what's the lint result mean? It's something wrong about the description above? Could you help me fix that? |
The 'Fixes' line should just mention the ID of the issue, so you probably want to edit your description to be something like:
As the Relnote is the line we use to describe the change to developers, while the 'Fixes' line is read by the tooling to associate the issue and PR together. |
@ianhanniballake Am I allowed to rerun the androidx lint workflow? I saw no entrance for me to do that? |
Only Googlers can re-run tasks, so that part is expected, but it seems like changes to the description don't get reflected in re-runs unless there's a code change - can you add another commit here (say, changing |
We were able to fix it on the AndroidX side (the errors were Github specific), so the fix has been merged now 🎉 |
…actComposeView(...), ...) ## Issues Fixed Fixes: [AppCompatDialog] The bug on [IssueTracker - 349502140](https://issuetracker.google.com/issues/349502140) being fixed ## Description In the `AppCompatDialog`, `initViewTreeOwners()` is called inside all of `setContentView` but no `addContentView`. While in `ComponentDialog`, `initializeViewTreeOwners()` is called inside all of `setContentView` and `addContentView`, so `AppCompatDialog` has no complete solution for the `IllegalStateException`. This is an imported pull request from androidx#686. Resolves androidx#686 Github-Pr-Head-Sha: 960e5ec GitOrigin-RevId: db858ec Change-Id: I4aae2e2a07a56f29e6aa13fd7f9178f4c60bdf34 Signed-off-by: tribalfs <tribalfs@gmail.com>
Issues Fixed
Fixes: 349502140
Relnote: "Fixed an
IllegalStateException
when attempting to useComposeView
in anAppCompatDialog
when usingaddContentView
"Description
In the
AppCompatDialog
,initViewTreeOwners()
is called inside all ofsetContentView
but noaddContentView
. While inComponentDialog
,initializeViewTreeOwners()
is called inside all ofsetContentView
andaddContentView
, soAppCompatDialog
has no complete solution for theIllegalStateException
.