Skip to content

Commit

Permalink
Revert "chore: revert square crop transformation"
Browse files Browse the repository at this point in the history
This reverts commit 0fd4278.
  • Loading branch information
lovegaoshi committed Dec 10, 2023
1 parent 0fd4278 commit 86b22f1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ class NotificationManager internal constructor(
if (artwork != null && holder?.artworkBitmap == null) {
var imgrequest = ImageRequest.Builder(context)
.data(artwork)
if (Build.MANUFACTURER == "samsung") {
imgrequest = imgrequest.transformations(CropSquareTransformation())
}
context.imageLoader.enqueue(
imgrequest.target { result ->
val resultBitmap = (result as BitmapDrawable).bitmap
Expand Down

0 comments on commit 86b22f1

Please sign in to comment.