From 98c900d52d6324659aa33e4fe58fe33b6c603a54 Mon Sep 17 00:00:00 2001 From: Constantine Date: Sun, 10 Feb 2019 20:46:44 +0300 Subject: [PATCH] Replace Picasso on Glide --- sample/build.gradle | 2 +- .../main/kotlin/ru/semper_viventem/backdropview/extensions.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/build.gradle b/sample/build.gradle index 68890c3..0107386 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -43,7 +43,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" // Images - implementation 'com.squareup.picasso:picasso:2.71828' + implementation 'com.github.bumptech.glide:glide:4.8.0' implementation project(':backdrop') } diff --git a/sample/src/main/kotlin/ru/semper_viventem/backdropview/extensions.kt b/sample/src/main/kotlin/ru/semper_viventem/backdropview/extensions.kt index 39b5833..93c93a2 100644 --- a/sample/src/main/kotlin/ru/semper_viventem/backdropview/extensions.kt +++ b/sample/src/main/kotlin/ru/semper_viventem/backdropview/extensions.kt @@ -8,7 +8,7 @@ import android.view.inputmethod.InputMethodManager import android.widget.ImageView import androidx.annotation.LayoutRes import androidx.coordinatorlayout.widget.CoordinatorLayout -import com.squareup.picasso.Picasso +import com.bumptech.glide.Glide fun ViewGroup.inflate(@LayoutRes layoutRes: Int, attachToRoot: Boolean = false): View { @@ -34,7 +34,7 @@ fun View.showKeyboard(show: Boolean) { fun ImageView.load( url: String? ) { - Picasso.get() + Glide.with(this) .load(url) .into(this) } \ No newline at end of file