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();
|
refreshChatRoomsList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPause() {
|
public void onPause() {
|
||||||
Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue