mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Strengthened control over normalized artist bio
This commit is contained in:
parent
a1673cd9c2
commit
69191a517b
1 changed files with 4 additions and 2 deletions
|
|
@ -114,7 +114,9 @@ public class ArtistPageFragment extends Fragment {
|
|||
|
||||
private void initArtistInfo() {
|
||||
artistPageViewModel.getArtistInfo(artistPageViewModel.getArtist().getId()).observe(requireActivity(), artist -> {
|
||||
if (bind != null) bind.artistPageBioSector.setVisibility(artist.getBio() != null ? View.VISIBLE : View.GONE);
|
||||
String normalizedBio = MusicUtil.forceReadableString(artist.getBio());
|
||||
|
||||
if (bind != null) bind.artistPageBioSector.setVisibility(!normalizedBio.trim().isEmpty() ? View.VISIBLE : View.GONE);
|
||||
if (bind != null) bind.bioMoreTextViewClickable.setVisibility(artist.getLastfm() != null ? View.VISIBLE : View.GONE);
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
|
|
@ -122,7 +124,7 @@ public class ArtistPageFragment extends Fragment {
|
|||
.build()
|
||||
.into(bind.artistBackdropImageView);
|
||||
|
||||
bind.bioTextView.setText(MusicUtil.forceReadableString(artist.getBio()));
|
||||
bind.bioTextView.setText(normalizedBio);
|
||||
|
||||
bind.bioMoreTextViewClickable.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue