luckybilly / luckybilly/SmartSwipe

小米12手机android13,登陆页面登录完成后finish当前页面并且立马跳转目标页面,目标页面侧滑退出会出现叠影

Open
#98 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.1k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

设备:小米12手机android13

依赖版本:
implementation 'com.billy.android:smart-swipe-x:1.1.0'
implementation 'com.billy.android:smart-swipe:1.1.2'

侧滑代码初始化(写在baseActivity中):
var mSwipeConsumer: SwipeConsumer? = null
var mSmartSwipeWrapper: SmartSwipeWrapper? = null
open fun initSwipeBackFinish() {
if (this !is MainActivity) {
val videoActivitySlidingBackConsumer = ActivitySlidingBackConsumer(this)
mSmartSwipeWrapper = SmartSwipe.wrap(this)
mSwipeConsumer = mSmartSwipeWrapper?.removeAllConsumers()
?.addConsumer(videoActivitySlidingBackConsumer)
?.setScrimColor(0x7F000000)
?.setEdgeSize(((ScreemUtils.getWidthInPx() / 3.0f).toInt()))
?.enableLeft()
}
}

操作步骤:
1.当前在(主页面)上
2.点击主页面中的某一个按钮,打算跳转到(目标页面A),但是因为打开(页面A)需要登录,所以最后跳转到了(登录页面).
3.在(登录页面)完成登录后,finish()(登录页面),并且跳转到(目标页面A)。
4.这时候我们已经在(目标页面A)了,手指侧滑退出(目标页面A)出现叠影

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at initSwipeBackFinish in the baseActivity and reproduce the login-to-target-page flow on a Xiaomi 12 running Android 13. Check the transition from the finished login page to target page A, then test swipe-back; done means exiting target page no longer shows the overlapping image.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.