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() {
|
private void initArtistLabelButton() {
|
||||||
playerArtistNameLabel.setOnClickListener(view -> playerBottomSheetViewModel.getLiveArtist().observe(requireActivity(), artist -> {
|
playerBottomSheetViewModel.getLiveArtist().observe(requireActivity(), artist -> {
|
||||||
Bundle bundle = new Bundle();
|
if (artist != null) {
|
||||||
bundle.putParcelable("artist_object", artist);
|
playerArtistNameLabel.setOnClickListener(view -> {
|
||||||
NavHostFragment.findNavController(this).navigate(R.id.artistPageFragment, bundle);
|
Bundle bundle = new Bundle();
|
||||||
activity.collapseBottomSheet();
|
bundle.putParcelable("artist_object", artist);
|
||||||
}));
|
NavHostFragment.findNavController(this).navigate(R.id.artistPageFragment, bundle);
|
||||||
|
activity.collapseBottomSheet();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void goBackToFirstPage() {
|
public void goBackToFirstPage() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue