Skip to content

Compose 组件去到 FragmentActivity 后崩溃. #239

@qazxcs113

Description

@qazxcs113

你的Fx版本是多少
V2.3.7
遇到了什么问题
使用 compose 时
viewTreeLifecycleOwner not found from com.petterp.floatingx.view.FxSystemContainerView 崩溃
可复现的示例代码 或者 复现步骤
调用了enableComposeSupport
我使用 Compose 组件的操作。当我从正常的 Activity(AppCompatActivity) 能找到 activity.window.decorView.findViewTreeLifecycleOwner() 的情况下,切换至另外的 Activity(FragmentActivity) 既找不到ViewTree 的。实际是集成去的 Google 登陆。
然后就爆发了以上的崩溃。

当然可以解决的事,注册一个 lifecycleCallBack 在检测时,release 掉可以解决这个问题。但是希望可以完善一下这种情况。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions