fix image scaling of no bubble mode

This commit is contained in:
Sinofine Lotusie 2023-02-27 17:28:01 +08:00
parent 828ab89765
commit 772421f20d
3 changed files with 3 additions and 2 deletions

View File

@ -117,6 +117,7 @@ class ImageContentRenderer @Inject constructor(
*/ */
GlideApp.with(imageView) GlideApp.with(imageView)
.load(imageUrl) .load(imageUrl)
.fitCenter()
.listener(object: RequestListener<Drawable> { .listener(object: RequestListener<Drawable> {
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean { override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
Timber.e("Rendering url $imageUrl failed: $e") Timber.e("Rendering url $imageUrl failed: $e")

View File

@ -99,4 +99,4 @@
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</merge> </merge>

View File

@ -86,4 +86,4 @@
app:tint="?vctr_content_secondary" app:tint="?vctr_content_secondary"
tools:ignore="MissingPrefix" /> tools:ignore="MissingPrefix" />
</merge> </merge>