mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Fixed a strange behavior after starting the fragment ArtistPage
This commit is contained in:
parent
8394c3f84e
commit
22d9e70595
1 changed files with 10 additions and 6 deletions
|
|
@ -178,12 +178,16 @@ public class PlayerControllerFragment extends Fragment {
|
|||
}
|
||||
|
||||
private void initArtistLabelButton() {
|
||||
playerArtistNameLabel.setOnClickListener(view -> playerBottomSheetViewModel.getLiveArtist().observe(requireActivity(), artist -> {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putParcelable("artist_object", artist);
|
||||
NavHostFragment.findNavController(this).navigate(R.id.artistPageFragment, bundle);
|
||||
activity.collapseBottomSheet();
|
||||
}));
|
||||
playerBottomSheetViewModel.getLiveArtist().observe(requireActivity(), artist -> {
|
||||
if (artist != null) {
|
||||
playerArtistNameLabel.setOnClickListener(view -> {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putParcelable("artist_object", artist);
|
||||
NavHostFragment.findNavController(this).navigate(R.id.artistPageFragment, bundle);
|
||||
activity.collapseBottomSheet();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void goBackToFirstPage() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue