Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LvBing1995 opened this issue Apr 14, 2023 · 1 comment

Comments

@LvBing1995
Copy link

设备:小米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)出现叠影

@15979886715
Copy link

15979886715 commented Apr 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants