Fragmentation icon indicating copy to clipboard operation
Fragmentation copied to clipboard

从activity跳回到首页某个tab时,会先跳到homeFragment,再跳转到指定的fragment

Open Spring1901 opened this issue 8 years ago • 2 comments

录频地址 :https://image.poempz.com/worldcup/9a9efc57b8fda4ab4a34b803f201b033.mp4

在Vivo,魅族手机上都有该问题,但在有些手机上又是正常的。

Spring1901 avatar Jul 13 '18 02:07 Spring1901

首界面设置为singleTask,由其它页面跳转到首页第二个tab的时候,在首页面的onNewIntent方法中判断 ,并选中对应的tab,就出现上面视频 的情况

Spring1901 avatar Jul 13 '18 02:07 Spring1901

可能是因为队列机制, 如果敏感的话使用标准方式切换tab:

fm.beginTransaction().show().hide().commitAllowingStateLoss()

YoKeyword avatar Aug 14 '18 13:08 YoKeyword