Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
Another alternative may be to add a MergeAdapter.Config.Builder
constructor that accepts a seed configuration as a parameter, so that one could write
mAdapter = MergeAdapter(
MergeAdapter.Config.Builder(MergeAdapter.Config.DEFAULT)
.setStableIdMode(ISOLATED_STABLE_IDS)
.build(),
adapter1,
adapter2
)
etc.
Description
Version used: 1.0.0-alpha09
Since Safe Args currently has the child Directions class extend the parent navigation graph's Directions object, it can fail to compile due to different return types if the parent and child have the same action id and arguments.
<navigation
android:id="@+id/parent"
app:startDestination="@+id/child">
<action
android:id="@+id/next"
app:popUpTo="@+id/parent" />
<fragment
android:id="@+id/child">
<action
android:id="@+id/next
app:popUpTo="@+id/parent"/>
</fragment>
</navigation>