Fixed chat room listener when in GroupChatFragment (this fragment onResume is called before the onPause of the previous one...)

This commit is contained in:
Sylvain Berfini 2018-02-15 17:46:35 +01:00
parent 1521d21af7
commit 128deb8791
2 changed files with 1 additions and 4 deletions

View file

@ -141,7 +141,7 @@ public class ChatListFragment extends Fragment implements OnItemClickListener, C
refreshChatRoomsList(); refreshChatRoomsList();
} }
@Override @Override
public void onPause() { public void onPause() {
Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull(); Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();

View file

@ -110,9 +110,6 @@ public class ChatRoomsAdapter extends ListSelectionAdapter {
} }
public void clear() { public void clear() {
for (ChatRoom room : mRooms) {
room.setListener(null);
}
mRooms.clear(); mRooms.clear();
} }