DSAppTeam / DSAppTeam/PanelSwitchHelper

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

Open
#214 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2.4k
Forks
287
PR merge metrics
No merged PRs in 30d

Description

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

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

7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with one PanelSwitchHelper in the immersive page and another in DialogFragment, both using android11KeyboardFeature. Trace keyboardChangedAnimation() and its WindowInsetsAnimationCompat listener through DialogFragment dismissal; done means the dismissed dialog no longer leaves a listener that produces incorrect positions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.