SmartSwipe icon indicating copy to clipboard operation
SmartSwipe copied to clipboard

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

Open LvBing1995 opened this issue 1 year ago • 1 comments

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

LvBing1995 avatar Apr 14 '23 10:04 LvBing1995

你是从哪里发送邮件给我的,请问你是哪一位?

------------------ 原始邮件 ------------------ 发件人: "luckybilly/SmartSwipe" @.>; 发送时间: 2023年4月14日(星期五) 晚上6:40 @.>; @.***>; 主题: [luckybilly/SmartSwipe] 小米12手机android13,登陆页面登录完成后finish当前页面并且立马跳转目标页面,目标页面侧滑退出会出现叠影 (Issue #98)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

15979886715 avatar Apr 22 '23 12:04 15979886715