Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
se...@google.com <se...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
se...@google.com <se...@google.com> #4
Change was temporarily reverted to allow appcompat to go beta, it will applied again later for 1.3.0-alpha01 release.
se...@google.com <se...@google.com>
il...@google.com <il...@google.com> #5
This has been
Description
- Version used: 2.3.0-alpha01
`AppCompatActivity` reimplements `setContentView` and it doesn't call it's super. For this reason the code inside `ComponentActivity.setContentView` is not executed. And for this reason `ViewTreeLifecycleOwner.get(View)` always returns `null`. If my Activity extends from `ComponentActivity` all works like a charm.
To reproduce just create an `AppCompatActivity` with a view get the view with findViewById and call `ViewTreeLifecycleOwner.get` with it.