Skip to content

Commit

Permalink
Use screen width as image size
Browse files Browse the repository at this point in the history
Signed-off-by: mueller-ma <[email protected]>
  • Loading branch information
mueller-ma committed Jul 10, 2024
1 parent 9a05dca commit d37b6f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class NotificationHelper(private val context: Context) {
val messageImage = if (message.mediaAttachmentUrl != null) {
ConnectionFactory.waitForInitialization()
ConnectionFactory.primaryUsableConnection?.connection?.let {
message.loadImage(it, context, 99)
message.loadImage(it, context, context.resources.displayMetrics.widthPixels)
}
} else {
null
Expand Down

0 comments on commit d37b6f2

Please sign in to comment.