gyf-dev / gyf-dev/ImmersionBar

Redmi Note7 判断手势提示线错误

Open
#545 0 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.