Search in sources :

Example 1 with ChatRoomListAdapter

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);
    }
}
Also used : NoResultsAdapter(de.tum.in.tumcampusapp.component.other.generic.adapter.NoResultsAdapter) ChatRoomListAdapter(de.tum.in.tumcampusapp.component.ui.chat.adapter.ChatRoomListAdapter)

Aggregations

NoResultsAdapter (de.tum.in.tumcampusapp.component.other.generic.adapter.NoResultsAdapter)1 ChatRoomListAdapter (de.tum.in.tumcampusapp.component.ui.chat.adapter.ChatRoomListAdapter)1