Fix memory leak in conversation fragment.
This commit is contained in:
parent
805ccc4f7a
commit
7a72a9a0d7
1 changed files with 6 additions and 0 deletions
|
@ -456,6 +456,12 @@ public class ConversationFragment extends LoggingFragment implements Multiselect
|
|||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
ApplicationDependencies.getDatabaseObserver().unregisterObserver(threadDeletedObserver);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
private @NonNull GiphyMp4ProjectionRecycler initializeGiphyMp4() {
|
||||
int maxPlayback = GiphyMp4PlaybackPolicy.maxSimultaneousPlaybackInConversation();
|
||||
List<GiphyMp4ProjectionPlayerHolder> holders = GiphyMp4ProjectionPlayerHolder.injectVideoViews(requireContext(),
|
||||
|
|
Loading…
Add table
Reference in a new issue