Skip to content

Commit

Permalink
fix image scaling of no bubble mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinofine committed Feb 27, 2023
1 parent 828ab89 commit 772421f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class ImageContentRenderer @Inject constructor(
*/
GlideApp.with(imageView)
.load(imageUrl)
.fitCenter()
.listener(object: RequestListener<Drawable> {
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
Timber.e("Rendering url $imageUrl failed: $e")
Expand Down
2 changes: 1 addition & 1 deletion vector/src/main/res/layout/view_url_preview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
</androidx.constraintlayout.widget.ConstraintLayout>


</merge>
</merge>
2 changes: 1 addition & 1 deletion vector/src/main/res/layout/view_url_preview_sc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
app:tint="?vctr_content_secondary"
tools:ignore="MissingPrefix" />

</merge>
</merge>

0 comments on commit 772421f

Please sign in to comment.