File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/main/kotlin/dev/hotwire/demo/features/imageviewer Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ dependencies {
6262 implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0" )
6363
6464 // Images
65- implementation(" com.github.bumptech.glide:glide:4.15.1 " )
65+ implementation(" io.coil-kt:coil:2.6.0 " )
6666
6767 implementation(project(" :core" ))
6868}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import android.view.LayoutInflater
55import android.view.View
66import android.view.ViewGroup
77import android.widget.ImageView
8- import com.bumptech.glide.Glide
8+ import coil.load
99import dev.hotwire.core.navigation.fragments.HotwireFragment
1010import dev.hotwire.core.turbo.nav.HotwireDestination
1111import dev.hotwire.core.turbo.util.displayBackButtonAsCloseIcon
@@ -28,8 +28,6 @@ class ImageViewerFragment : HotwireFragment() {
2828 }
2929
3030 private fun loadImage (view : View ) {
31- view.findViewById<ImageView >(R .id.image_view)?.let {
32- Glide .with (this ).load(location).into(it)
33- }
31+ view.findViewById<ImageView >(R .id.image_view)?.load(location)
3432 }
3533}
You can’t perform that action at this time.
0 commit comments