DSAppTeam / DSAppTeam/PanelSwitchHelper
沉浸式页面+DialogFragment创建多个PanelSwitchHelper问题
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设置的监听依然存在,导致获取的位置出现问题
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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