mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Merge branch 'develop' into feature/fix_358
This commit is contained in:
commit
704da1be55
2 changed files with 7 additions and 5 deletions
|
@ -12,6 +12,7 @@ Other changes:
|
|||
|
||||
Bugfix:
|
||||
- Date change message repeats for each redaction until a normal message (#358)
|
||||
- Slide-in reply icon is distorted (#423)
|
||||
|
||||
Translations:
|
||||
-
|
||||
|
|
|
@ -191,12 +191,13 @@ class RoomMessageTouchHelperCallback(private val context: Context,
|
|||
}
|
||||
|
||||
val y = (itemView.top + itemView.measuredHeight / 2).toFloat()
|
||||
//magic numbers?
|
||||
val hw = imageDrawable.intrinsicWidth / 2f
|
||||
val hh = imageDrawable.intrinsicHeight / 2f
|
||||
imageDrawable.setBounds(
|
||||
(x - convertToPx(12) * scale).toInt(),
|
||||
(y - convertToPx(11) * scale).toInt(),
|
||||
(x + convertToPx(12) * scale).toInt(),
|
||||
(y + convertToPx(10) * scale).toInt()
|
||||
(x - hw * scale).toInt(),
|
||||
(y - hh * scale).toInt(),
|
||||
(x + hw * scale).toInt(),
|
||||
(y + hh * scale).toInt()
|
||||
)
|
||||
imageDrawable.draw(canvas)
|
||||
imageDrawable.alpha = 255
|
||||
|
|
Loading…
Reference in a new issue