mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 10:23:33 +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.artistPageBioSector.setVisibility(!normalizedBio.trim().isEmpty() ? View.VISIBLE : View.GONE);
|
||||||
if (bind != null) bind.bioMoreTextViewClickable.setVisibility(artist.getLastfm() != null ? 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(
|
.from(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
artistPageViewModel.getArtist().getId(),
|
artistPageViewModel.getArtist().getId(),
|
||||||
|
|
@ -145,9 +145,9 @@ public class ArtistPageFragment extends Fragment {
|
||||||
.build()
|
.build()
|
||||||
.into(bind.artistBackdropImageView);
|
.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 intent = new Intent(Intent.ACTION_VIEW);
|
||||||
intent.setData(Uri.parse(artist.getLastfm()));
|
intent.setData(Uri.parse(artist.getLastfm()));
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue