Paul
Paul
PathReplaceService2,PathReplaceService3。后面的3会覆盖掉之前的效果。PathReplaceService4会覆盖2和3。总之只有最后一个生效。不知道各位大佬是否遇到过一样的问题。还是我使用方法不对? button1和button4 正常跳转,button2,button3失败。 ``` public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final NavigationCallback navigationCallback = new NavigationCallback() { @Override public void onFound(Postcard postcard)...
发现PathReplaceService实现有一个逻辑错误。 假设一个特殊case。我们需要 path2 跳转到 path1,同时 path1 跳转到 path2。 使用PathReplaceService来实现的话,用 build(Uri) 方式是正常的,用 build(String) 方式就会错误。 比如在 Arouter 官方 Demo 项目增加一个 HelloPathReplaceService.java ``` package com.alibaba.android.arouter.demo.testservice; import android.content.Context; import android.net.Uri; import android.util.Log; import com.alibaba.android.arouter.facade.annotation.Route;...