Added missing navigation paths

This commit is contained in:
CappielloAntonio 2022-01-16 11:57:49 +01:00
parent 9cede96bd9
commit e2bff83211
3 changed files with 10 additions and 0 deletions

View file

@ -108,6 +108,8 @@ public class AlbumHorizontalAdapter extends RecyclerView.Adapter<AlbumHorizontal
Navigation.findNavController(view).navigate(R.id.action_downloadFragment_to_albumPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.libraryFragment) {
Navigation.findNavController(view).navigate(R.id.action_libraryFragment_to_albumPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.starredFragment) {
Navigation.findNavController(view).navigate(R.id.action_starredFragment_to_albumPageFragment, bundle);
}
}

View file

@ -117,6 +117,8 @@ public class ArtistHorizontalAdapter extends RecyclerView.Adapter<ArtistHorizont
else Navigation.findNavController(view).navigate(R.id.action_artistListPageFragment_to_albumListPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.downloadFragment) {
Navigation.findNavController(view).navigate(R.id.action_downloadFragment_to_albumListPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.starredFragment) {
Navigation.findNavController(view).navigate(R.id.action_starredFragment_to_artistPageFragment, bundle);
}
}

View file

@ -277,6 +277,12 @@
<action
android:id="@+id/action_starredFragment_to_artistListPageFragment"
app:destination="@id/artistListPageFragment" />
<action
android:id="@+id/action_starredFragment_to_albumPageFragment"
app:destination="@id/albumPageFragment" />
<action
android:id="@+id/action_starredFragment_to_artistPageFragment"
app:destination="@id/artistPageFragment" />
</fragment>
<fragment
android:id="@+id/playlistPageFragment"