mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Null checking
This commit is contained in:
parent
9782cb7086
commit
3adb576963
1 changed files with 3 additions and 3 deletions
|
|
@ -134,7 +134,7 @@ public class ArtistPageFragment extends Fragment {
|
|||
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
|
||||
if (getContext() != null) CustomGlideRequest.Builder
|
||||
.from(
|
||||
requireContext(),
|
||||
artistPageViewModel.getArtist().getId(),
|
||||
|
|
@ -145,9 +145,9 @@ public class ArtistPageFragment extends Fragment {
|
|||
.build()
|
||||
.into(bind.artistBackdropImageView);
|
||||
|
||||
bind.bioTextView.setText(normalizedBio);
|
||||
if (bind != null) bind.bioTextView.setText(normalizedBio);
|
||||
|
||||
bind.bioMoreTextViewClickable.setOnClickListener(v -> {
|
||||
if (bind != null) bind.bioMoreTextViewClickable.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse(artist.getLastfm()));
|
||||
startActivity(intent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue