Remove URL from image model.

We decided to pass image content instead in a follow up CL.

Test: manual
Bug: 414869782
Flag: com.android.launcher3.enable_growth_nudge
Change-Id: I05167f81ac7b887cb5e00915f1ffdec0bb2dc720
This commit is contained in:
Li Lin
2025-04-30 15:09:24 -07:00
parent bcceb28d2e
commit d26a7d3979
2 changed files with 0 additions and 5 deletions
@@ -95,9 +95,6 @@ class NudgeController(context: Context) : LoggableTaskbarController {
fun updateImage(image: Image?) {
val imageView = requireViewById<ImageView>(R.id.image_view)
when (image) {
is Image.Url -> {
// TODO: b/396166097 - Load image from URL.
}
is Image.ResourceId -> {
imageView.setImageDrawable(context.getDrawable(image.resId))
}
@@ -26,8 +26,6 @@ sealed interface Action {
sealed class Image {
data class ResourceId(val resId: Int) : Image()
data class Url(val url: String) : Image()
}
data class ButtonPayload(val label: String, val actions: List<Action>)