mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-26 01:37:43 +00:00
Fix drawable state sharing
This commit is contained in:
parent
2ef1f83e6d
commit
e87d22d62b
@ -33,7 +33,7 @@ import kotlin.math.roundToInt
|
|||||||
import kotlin.math.sqrt
|
import kotlin.math.sqrt
|
||||||
|
|
||||||
class VisibleMessageView : LinearLayout {
|
class VisibleMessageView : LinearLayout {
|
||||||
private val swipeToReplyIcon = ContextCompat.getDrawable(context, R.drawable.ic_baseline_reply_24)!!
|
private val swipeToReplyIcon = ContextCompat.getDrawable(context, R.drawable.ic_baseline_reply_24)!!.mutate()
|
||||||
private val swipeToReplyIconRect = Rect()
|
private val swipeToReplyIconRect = Rect()
|
||||||
private var dx = 0.0f
|
private var dx = 0.0f
|
||||||
private var previousTranslationX = 0.0f
|
private var previousTranslationX = 0.0f
|
||||||
@ -179,6 +179,8 @@ class VisibleMessageView : LinearLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun recycle() {
|
fun recycle() {
|
||||||
|
translationX = 0.0f
|
||||||
|
swipeToReplyIcon.alpha = 0
|
||||||
profilePictureView.recycle()
|
profilePictureView.recycle()
|
||||||
messageContentView.recycle()
|
messageContentView.recycle()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user