Add support for remotely loaded images in RMF#7445
Merged
catalinradoiu merged 30 commits intodevelopfrom Jan 16, 2026
Merged
Conversation
…r top illustration configuration in the message cta
…r Json remote message mapper
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
# Conflicts: # android-design-system/design-system/src/main/res/layout/view_remote_message_cta.xml
# Conflicts: # remote-messaging/remote-messaging-impl/src/main/java/com/duckduckgo/remote/messaging/impl/modal/cardslist/CardsListRemoteMessageView.kt
cmonfortep
approved these changes
Jan 14, 2026
|
|
||
| <ImageView | ||
| android:id="@+id/remoteImage" | ||
| android:layout_width="48dp" |
…age is dismissed instead of using the cache
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Task/Issue URL: https://app.asana.com/1/137249556945/project/1211724162604201/task/1212745281144616?focus=true
Description
This PR adds support for loading remote images in the RMF components. It implements:
Steps to test this PR
Remote Image Loading
UI changes
The image that was loaded is taken from https://staticcdn.duckduckgo.com/remotemessaging/illustrations/image.png
Note
Adds remote image loading to RMF with prefetching and local caching for smoother rendering.
RemoteMessageImageStore(Glide-backed) to prefetch, persist, supply, and clear message images; wired via DI and repository (getRemoteMessageImageFile) and cleared on dismissRemoteMessage.Contentmodels and JSON mappers with optionalimageUrl; maps through to UI viaasMessage(..., localImageFilePath)MessageCtato renderimageUrlor local file with Glide (fallback to drawable/animation), plus newImageViews and barriers inview_remote_message_cta.xml,view_promo_message_cta.xmlRemoteMessageViewModelandNewTabLegacyPageViewModel/ViewtoMessageCtaWritten by Cursor Bugbot for commit 3124c3e. This will update automatically on new commits. Configure here.