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:
@@ -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>)
|
||||
|
||||
Reference in New Issue
Block a user