Skip to content

Commit

Permalink
Fix Live TV program popup not populating when opening early
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Jul 25, 2024
1 parent de49e10 commit 27a3cda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,10 @@ void detailUpdateInternal() {
mDisplayDate.setText(TimeUtils.getFriendlyDate(requireContext(), mSelectedProgram.getStartDate()));
String url = imageHelper.getValue().getPrimaryImageUrl(mSelectedProgram, null, ImageHelper.MAX_PRIMARY_IMAGE_HEIGHT);
mImage.load(url, null, ContextCompat.getDrawable(requireContext(), R.drawable.blank10x10), 0, 0);

if (mDetailPopup != null && mDetailPopup.isShowing() && mSelectedProgramView != null) {
mDetailPopup.setContent(mSelectedProgram, ((ProgramGridCell) mSelectedProgramView));
}
}

public void setSelectedProgram(RelativeLayout programView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,10 @@ void detailUpdateInternal() {
if (mSelectedProgram.getId() != null) {
tvGuideBinding.displayDate.setText(TimeUtils.getFriendlyDate(requireContext(), mSelectedProgram.getStartDate()));
}

if (mDetailPopup != null && mDetailPopup.isShowing() && mSelectedProgramView != null) {
mDetailPopup.setContent(mSelectedProgram, ((ProgramGridCell) mSelectedProgramView));
}
}

public void setSelectedProgram(RelativeLayout programView) {
Expand Down

0 comments on commit 27a3cda

Please sign in to comment.