Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Mar 11, 2022
1 parent d212101 commit 0f29e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies {
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'jp.wasabeef:glide-transformations:4.3.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference:1.2.0'
testImplementation 'junit:junit:4.13.2'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/ethosa/ktc/utils/HtmlImageGetter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class HtmlImageGetter(
GlobalScope.launch(Dispatchers.IO) {
run {
// Download image and converts to Drawable
val bitmap = Picasso.with(textView.context).load(p0!!).get()
val bitmap = Picasso.get().load(p0!!).get()
val drawable = BitmapDrawable(res, bitmap)
// Scale image with keep aspect ratio
val width = res.displayMetrics.widthPixels
Expand Down

0 comments on commit 0f29e82

Please sign in to comment.