Skip to content

Commit

Permalink
set event location visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-lopreiato committed Jan 13, 2024
1 parent a8e8907 commit 7ee57bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ public void updateData(@Nullable Model data) {
// Show a venue if it is available, otherwise show just the location. If neither is available, hide
if (data.venueString != null && !data.venueString.isEmpty()) {
mBinding.eventVenue.setText(data.venueString);
mBinding.eventVenueContainer.setVisibility(View.VISIBLE);
} else if (data.locationString != null && !data.locationString.isEmpty()) {
mBinding.eventVenue.setText(data.locationString);
mBinding.eventVenueContainer.setVisibility(View.VISIBLE);
} else {
mBinding.eventVenue.setText(R.string.no_location_available);
mBinding.eventVenueContainer.setVisibility(View.GONE);
Expand Down

0 comments on commit 7ee57bb

Please sign in to comment.