[英]Jetpack compose - nested navigation with 1.0.0-alpha02
After navigation-compose 1.0.0-alpha01 is released, I tried to play with nested navigation in conjunction with bottom navigation bar.在 navigation-compose 1.0.0-alpha01 发布后,我尝试将嵌套导航与底部导航栏结合使用。 It allows to switch between tabs and enter to nested screens with saving tabs state even after screen rotation
即使在屏幕旋转后,它也允许在选项卡之间切换并进入嵌套屏幕并保存选项卡状态
https://github.com/ochkarik05/try-compose https://github.com/ochkarik05/try-compose
After updating compose to 1.0.0-alpha07 and navigation-compose to 1.0.0-alpha02, everything stopped working after screen rotation, for example, back button has no effect.将compose更新为1.0.0-alpha07并将navigation-compose更新为1.0.0-alpha02后,屏幕旋转后一切都停止工作,例如后退按钮无效。 Broken branch are here:
破碎的分支在这里:
https://github.com/ochkarik05/try-compose/tree/feature/update_libs https://github.com/ochkarik05/try-compose/tree/feature/update_libs
Now I can not find how to fix it.现在我找不到如何解决它。
I ran into the same issue as well, and confirmed that downgrading from nav alpha02
to alpha01
fixes the issue.我也遇到了同样的问题,并确认从导航
alpha02
降级到alpha01
解决了这个问题。
I logged https://issuetracker.google.com/issues/173563115 since it seems to be a bug within the library itself.我登录了https://issuetracker.google.com/issues/173563115,因为它似乎是库本身的一个错误。 You should be able to turn on notifications for that ticket to receive any updates.
您应该能够打开该票证的通知以接收任何更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.