Fixed chat room listener when in GroupChatFragment (this fragment onResume is called before the onPause of the previous one...)
This commit is contained in:
parent
1521d21af7
commit
128deb8791
2 changed files with 1 additions and 4 deletions
|
@ -141,7 +141,7 @@ public class ChatListFragment extends Fragment implements OnItemClickListener, C
|
|||
|
||||
refreshChatRoomsList();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||
|
|
|
@ -110,9 +110,6 @@ public class ChatRoomsAdapter extends ListSelectionAdapter {
|
|||
}
|
||||
|
||||
public void clear() {
|
||||
for (ChatRoom room : mRooms) {
|
||||
room.setListener(null);
|
||||
}
|
||||
mRooms.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue