-
Notifications
You must be signed in to change notification settings - Fork 120
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
好像组件跳转回退时有些问题 #4
Comments
能详细描述一下你遇到的问题吗? |
能详细描述一下你存在的问题吗
… 在 2018年10月31日,11:04,Joehaivo ***@***.***> 写道:
是把每次跳转都加入了回退栈吗
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#4>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AOoSIMUSC8XdV9yYVme8bdhbNXB9Zvikks5uqRMjgaJpZM4YDQk6>.
|
比如,依次点击去分享-去登录-去分享-去登录.....多次点击,回退时会原路依次返回,这里感觉很奇怪 |
这个是由 Activity 的启动模式导致的,使用 ARouter 实现的 Activity 跳转最终是调用了原生的 startActivity 方法,所以启动的 Activity 会被系统的回退栈管理,跟组件化是没什么关系的。
如果想解决这个问题,可以将 Activity 的启动模式设置为 singleTask 或者 singleInstance
… 在 2018年10月31日,17:57,Joehaivo ***@***.***> 写道:
比如,依次点击去分享-去登录-去分享-去登录.....多次点击,回退时会原路依次返回,这里感觉很奇怪
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#4 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AOoSIANNt4f3rYS-x9LCt0brTSTdorkyks5uqXPtgaJpZM4YDQk6>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是把每次跳转都加入了回退栈吗
The text was updated successfully, but these errors were encountered: