mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 00:23:40 +00:00
Unsubscribe from typing observers when forwarding messages.
This commit is contained in:
parent
a81cc685b2
commit
4b88f7b845
@ -176,6 +176,12 @@ public class ConversationFragment extends Fragment
|
|||||||
this.listener = (ConversationFragmentListener)activity;
|
this.listener = (ConversationFragmentListener)activity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
initializeTypingObserver();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
@ -185,6 +191,12 @@ public class ConversationFragment extends Fragment
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStop() {
|
||||||
|
super.onStop();
|
||||||
|
ApplicationContext.getInstance(requireContext()).getTypingStatusRepository().getTypists(threadId).removeObservers(this);
|
||||||
|
}
|
||||||
|
|
||||||
public void onNewIntent() {
|
public void onNewIntent() {
|
||||||
if (actionMode != null) {
|
if (actionMode != null) {
|
||||||
actionMode.finish();
|
actionMode.finish();
|
||||||
@ -227,7 +239,6 @@ public class ConversationFragment extends Fragment
|
|||||||
|
|
||||||
OnScrollListener scrollListener = new ConversationScrollListener(getActivity());
|
OnScrollListener scrollListener = new ConversationScrollListener(getActivity());
|
||||||
list.addOnScrollListener(scrollListener);
|
list.addOnScrollListener(scrollListener);
|
||||||
initializeTypingObserver();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initializeListAdapter() {
|
private void initializeListAdapter() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user