We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ActivityA 调用 Router.with(this) .host(ModuleConfig.File.HOST_FILE) .path(path).putString(ModuleConfig.Scanner.TYPE, type) .requestCode(FileConstant.REQUEST_CODE_DETAIL_ACTIVITY) .forwardForResult 跳转到ActivityB, B在前台处理大量图片,导致低内存,A被系统destroy,然后back返回到A , 此时A调用以上代码跳转到B失效。
The text was updated successfully, but these errors were encountered:
跳转失败吧 应该是 原因应该是使用了同一个 requestCode 的缘故
第一:你requestCode 不需要自己声明, 叫 框架自己创建一个即可, requestCodeRandom 方法即可 第二:我这边会做一个优化, 假设 requestCode 对应的 Activity 已经结束了, 我会对内置的 requestCode 池子进行移除
Sorry, something went wrong.
不对 A 销毁的时候, 会取消路由的, 不是我刚刚说的问题。。 你最好查看具体的跳转失败的信息
No branches or pull requests
ActivityA 调用
Router.with(this)
.host(ModuleConfig.File.HOST_FILE)
.path(path).putString(ModuleConfig.Scanner.TYPE, type)
.requestCode(FileConstant.REQUEST_CODE_DETAIL_ACTIVITY)
.forwardForResult
跳转到ActivityB, B在前台处理大量图片,导致低内存,A被系统destroy,然后back返回到A , 此时A调用以上代码跳转到B失效。
The text was updated successfully, but these errors were encountered: