Debugging images issues.
This commit is contained in:
parent
1f40385786
commit
5cc633246a
@ -347,7 +347,7 @@ class ArticleFragment : Fragment(), DIAware {
|
|||||||
val image = Glide.with(view).asBitmap().apply(glideOptions).load(url).submit().get()
|
val image = Glide.with(view).asBitmap().apply(glideOptions).load(url).submit().get()
|
||||||
return WebResourceResponse("image/jpg", "UTF-8", getBitmapInputStream(image, Bitmap.CompressFormat.JPEG))
|
return WebResourceResponse("image/jpg", "UTF-8", getBitmapInputStream(image, Bitmap.CompressFormat.JPEG))
|
||||||
} catch ( e : ExecutionException) {
|
} catch ( e : ExecutionException) {
|
||||||
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > jpeg")
|
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > jpeg > $url")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (url.lowercase(Locale.US).contains(".png")) {
|
else if (url.lowercase(Locale.US).contains(".png")) {
|
||||||
@ -355,7 +355,7 @@ class ArticleFragment : Fragment(), DIAware {
|
|||||||
val image = Glide.with(view).asBitmap().apply(glideOptions).load(url).submit().get()
|
val image = Glide.with(view).asBitmap().apply(glideOptions).load(url).submit().get()
|
||||||
return WebResourceResponse("image/jpg", "UTF-8", getBitmapInputStream(image, Bitmap.CompressFormat.PNG))
|
return WebResourceResponse("image/jpg", "UTF-8", getBitmapInputStream(image, Bitmap.CompressFormat.PNG))
|
||||||
} catch ( e : ExecutionException) {
|
} catch ( e : ExecutionException) {
|
||||||
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > png")
|
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > png > $url")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (url.lowercase(Locale.US).contains(".webp")) {
|
else if (url.lowercase(Locale.US).contains(".webp")) {
|
||||||
@ -363,7 +363,7 @@ class ArticleFragment : Fragment(), DIAware {
|
|||||||
val image = Glide.with(view).asBitmap().apply(glideOptions).load(url).submit().get()
|
val image = Glide.with(view).asBitmap().apply(glideOptions).load(url).submit().get()
|
||||||
return WebResourceResponse("image/jpg", "UTF-8", getBitmapInputStream(image, Bitmap.CompressFormat.WEBP))
|
return WebResourceResponse("image/jpg", "UTF-8", getBitmapInputStream(image, Bitmap.CompressFormat.WEBP))
|
||||||
} catch ( e : ExecutionException) {
|
} catch ( e : ExecutionException) {
|
||||||
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > webp")
|
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > webp > $url")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user