gyf-dev / gyf-dev/ImmersionBar
Redmi Note7 判断手势提示线错误
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
设备:Redme Note7 android 9 api 28
该设备没有手势提示线,也无法通过系统设置显示手势提示线。当处于全面屏手势时,执行
int i = Settings.Global.getInt(contentResolver, IMMERSION_NAVIGATION_BAR_MODE_MIUI_HIDE, -1);
会返回 -1。应当按照 checkNavigation = i == 0; 来判断有手势提示线,不能用 checkNavigation = i != 1;
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
Search the repository for IMMERSION_NAVIGATION_BAR_MODE_MIUI_HIDE and the checkNavigation assignment to find the affected entry point. Reproduce the behavior on a Redmi Note 7 running Android 9/API 28 if available, then verify that the gesture hint-line detection matches the reported device behavior and that existing checks still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100