mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 01:58:34 +00:00
Remove listeners when detaching conversation item views.
This commit is contained in:
parent
d38d702adf
commit
7dd3efeb53
@ -285,6 +285,7 @@ public class ConversationItem extends LinearLayout implements BindableConversati
|
||||
@Override
|
||||
protected void onDetachedFromWindow() {
|
||||
ConversationSwipeAnimationHelper.update(this, 0f, 1f);
|
||||
unbind();
|
||||
super.onDetachedFromWindow();
|
||||
}
|
||||
|
||||
|
@ -87,6 +87,12 @@ public class ConversationUpdateItem extends LinearLayout
|
||||
bind(messageRecord, locale);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDetachedFromWindow() {
|
||||
unbind();
|
||||
super.onDetachedFromWindow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setEventListener(@Nullable EventListener listener) {
|
||||
// No events to report yet
|
||||
|
Loading…
x
Reference in New Issue
Block a user