Skip to content

沉浸式页面+DialogFragment创建多个PanelSwitchHelper问题 #214

Description

@zxc120301945

沉浸式页面创建一个PanelSwitchHelper,配置了android11KeyboardFeature = true,然后DialogFragment也创建一个PanelSwitchHelper,配置了android11KeyboardFeature = true会出现问题。

keyboardChangedAnimation()这个方法创建的WindowInsetsAnimationCompat这个监听器会被覆盖,然后退出dialogFragment,DialogFragment设置的监听依然存在,导致获取的位置出现问题
6

7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions