Skip to content

Commit

Permalink
Merge pull request #2 from AnkitGhate/master
Browse files Browse the repository at this point in the history
Added correct navigation action while navigating from Bookmarks to ArticleDetail
  • Loading branch information
Spikeysanju authored Jul 20, 2020
2 parents f64b4ab + d2b414f commit 5a0d144
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class BookmarksFragment : Fragment(R.layout.fragment_bookmarks) {
putSerializable("article", article)
}
findNavController().navigate(
R.id.action_articlesFragment_to_articleDetailsFragment,
R.id.action_bookmarksFragment_to_articleDetailsFragment,
bundle
)
}
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
android:id="@+id/bookmarksFragment"
android:name="www.thecodemonks.techbytes.ui.bookmarks.BookmarksFragment"
android:label="Bookmarks"
tools:layout="@layout/fragment_bookmarks" />
tools:layout="@layout/fragment_bookmarks" >
<action
android:id="@+id/action_bookmarksFragment_to_articleDetailsFragment"
app:destination="@id/articleDetailsFragment" />
</fragment>
<fragment
android:id="@+id/articleDetailsFragment"
android:name="www.thecodemonks.techbytes.ui.details.ArticleDetailsFragment"
Expand Down

0 comments on commit 5a0d144

Please sign in to comment.