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

安卓版本切换横屏会闪退,eros的demo也有这个问题 #90

Closed
shaibaoj opened this issue Mar 13, 2018 · 3 comments
Closed

安卓版本切换横屏会闪退,eros的demo也有这个问题 #90

shaibaoj opened this issue Mar 13, 2018 · 3 comments
Assignees
Labels

Comments

@shaibaoj
Copy link

例子:

  • 开发平台:darwin/windows/linux
  • node 版本:8.x.x
  • npm 版本:5.x.x
  • 调试类型:模拟器/真机
  • 调试系统版本: 安卓

安卓版本切换横屏会闪退,eros的demo也有这个问题

@hanliuxin5
Copy link

hanliuxin5 commented Mar 14, 2018

找到问题了

    @Override
    public void onDetach(Activity activity) {
        if (activity == this) {
            finish();

旋转屏幕会在 onDestroy 周期里触发其 Router 的一系列操作,然后就直接销毁了当前实例和 Activity
正在修复中

@myliuyx
Copy link
Collaborator

myliuyx commented Mar 15, 2018

代码已经 合进来发布了! 感谢@hanliuxin5 同学的pr

@akFace
Copy link

akFace commented Jul 19, 2018

@hanliuxin5 @shaibaoj 怎么设置横屏? 就是有个按钮点击就横屏。

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

No branches or pull requests

6 participants