Skip to content

Conversation

@AdamLiga
Copy link

  • VIDEO cards now show featured images when available
  • Updated buildFeaturedImageVisibility() to support VIDEO cards with images
  • Updated buildFeaturedImageUrl() for consistent behavior across card types
  • Added comprehensive unit tests for VIDEO card image display
  • Fixes issue where VIDEO posts with thumbnails didn't show images

Fixes #21332

Description

Testing instructions

- VIDEO cards now show featured images when available
- Updated buildFeaturedImageVisibility() to support VIDEO cards with images
- Updated buildFeaturedImageUrl() for consistent behavior across card types
- Added comprehensive unit tests for VIDEO card image display
- Fixes issue where VIDEO posts with thumbnails didn't show images

Fixes wordpress-mobile#21332
@adalpari adalpari self-requested a review November 24, 2025 11:31
@adalpari
Copy link
Contributor

Thank you for your contribution @AdamLiga !!
There are a couple of detekt warnings about unused imports. Could you remove them?
See them here: https://github.com/wordpress-mobile/WordPress-Android/pull/22325/files

Also, you can run detekt locally by using ./gradlew detekt

@AdamLiga AdamLiga force-pushed the fix/reader-video-card-featured-images branch from a755cb9 to 2b5e6dc Compare November 24, 2025 18:59
- Removed unused ReaderCardType.PHOTO import
- Removed unused ReaderCardType.DEFAULT import
- Addresses SonarCloud code analysis warnings
@sonarqubecloud
Copy link

Copy link
Contributor

@adalpari adalpari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! The fix looks good to me :) !

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
FlavorJalapeno
Build TypeDebug
Versionpr22325-23d45bd
Commit23d45bd
Direct Downloadwordpress-prototype-build-pr22325-23d45bd.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
FlavorJalapeno
Build TypeDebug
Versionpr22325-23d45bd
Commit23d45bd
Direct Downloadjetpack-prototype-build-pr22325-23d45bd.apk
Note: Google Login is not supported on these builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reader feed: Featured images not being consistently displayed

3 participants