Skip to content

Commit

Permalink
Replace Picasso on Glide
Browse files Browse the repository at this point in the history
  • Loading branch information
Semper-Viventem committed Feb 10, 2019
1 parent db309fb commit 98c900d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -34,7 +34,7 @@ fun View.showKeyboard(show: Boolean) {
fun ImageView.load(
url: String?
) {
Picasso.get()
Glide.with(this)
.load(url)
.into(this)
}

0 comments on commit 98c900d

Please sign in to comment.