-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MBL-1522: Blurry images on Campaign tab #2046
Conversation
@@ -35,19 +42,43 @@ class ImageWithCaptionView @JvmOverloads constructor( | |||
fun setImage(src: String) { | |||
if (src.isEmpty() || src.isBlank()) { | |||
binding.imageView.setImageDrawable(null) | |||
binding.imageViewPlaceholder.setImageDrawable(null) | |||
binding.composeViewImage.visibility = GONE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoids recycling cell issues
<androidx.appcompat.widget.AppCompatImageView | ||
android:id="@+id/image_view_placeholder" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The placeholder was the target of zoomIn images, no longer available.
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2046 +/- ##
============================================
- Coverage 67.80% 67.80% -0.01%
+ Complexity 2097 2096 -1
============================================
Files 353 353
Lines 21570 21570
Branches 3044 3044
============================================
- Hits 14626 14625 -1
Misses 5304 5304
- Partials 1640 1641 +1 ☔ View full report in Codecov by Sentry. |
(cherry picked from commit 8c0a861)
📲 What
A description of the change.
🤔 Why
So far: Campaign description comes from the HTML parser, we have reduce capabilities to deal or identify the content provided. After some changes made on the infra side we started having issues with images and gifs, Glide migration avoided crashes and gifs not loading but came with a problem causing low resolution images to be presented.
🛠 How
AppCompatImageView
over acomposeView
to allow coilSubcomposeAsyncImage
deal with the images, plus adding the loading indicator.👀 See
| Before 🐛 | After 🦋 |
LoadingIndicator.mp4
| | |
📋 QA
Story 📖
MBL-1522