Fix cell re-use issue

This commit is contained in:
Niels Andriesse 2021-06-21 14:00:48 +10:00
parent f79bb5e0d4
commit 517539a837
2 changed files with 4 additions and 13 deletions

View File

@ -64,7 +64,6 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
handleLongPress(message, position)
}
)
adapter.setHasStableIds(true)
adapter
}

View File

@ -13,19 +13,11 @@ import org.thoughtcrime.securesms.database.model.MessageRecord
class ControlMessageView : LinearLayout {
// region Lifecycle
constructor(context: Context) : super(context) {
setUpViewHierarchy()
}
constructor(context: Context) : super(context) { initialize() }
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) { initialize() }
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { initialize() }
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {
setUpViewHierarchy()
}
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
setUpViewHierarchy()
}
private fun setUpViewHierarchy() {
private fun initialize() {
LayoutInflater.from(context).inflate(R.layout.view_control_message, this)
}
// endregion