use of de.tum.in.tumcampusapp.component.ui.chat.adapter.ChatRoomListAdapter in project TumCampusApp by TCA-Team.
the class ChatRoomsActivity method onLoadFinished.
@Override
protected void onLoadFinished(List<ChatRoomAndLastMessage> result) {
showLoadingEnded();
if (result.isEmpty()) {
lvMyChatRoomList.setAdapter(new NoResultsAdapter(this));
} else {
// set ListView to data via the LecturesListAdapter
chatRoomAdapter = new ChatRoomListAdapter(this, result, mCurrentMode);
lvMyChatRoomList.setAdapter(chatRoomAdapter);
}
}
Aggregations