gyf-dev / gyf-dev/ImmersionBar

Bug 提醒:对预测性返回手势会造成 Bug 【耗费两天才排除出来】

Open
#580 2 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

表现形式是:

第一次右滑时无法返回到桌面,需要连续右滑两次才能返回桌面。

【因为测试设备有限,且是 ipad 应用,导致排查两天才定位到问题,大家引以为戒】

运行 Log 排查如下:
会有事件,但是一直是 rootView 拦截,且 Activity 的 返回事件(及适配手势返回回调)都不会响应。

title = com.vivaia.pos/com.app.template.LaunchActivity enqueue motion: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=0.0, y[0]=1082.041, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=2345127342, downTime=2345127342, deviceId=6, source=0x1002, displayId=0, eventId=835972846 }
title = com.vivaia.pos/com.app.template.LaunchActivity enqueue motion: MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=448.28516, y[0]=1271.5312, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=2345127492, downTime=2345127342, deviceId=6, source=0x1002, displayId=0, eventId=290760247 }
on fling

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 first and second right-swipe on the iPad application and inspect the LaunchActivity motion-event path described in the log. Check why the rootView intercepts the first gesture and whether the Activity back or gesture callback receives it; done means one right-swipe returns to the desktop.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.