Search in sources :

Example 1 with ChatPageListAdapter

use of ingage.ingage.adapters.ChatPageListAdapter in project iNGAGE by davis123123.

the class ChatPageListFragment method create.

public View create(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
    rootView = inflater.inflate(R.layout.fragment_page_list, container, false);
    chatRoomManager = new ChatRoomManager(getContext());
    chatPageListAdapter = new ChatPageListAdapter(this, getContext());
    chat = chatRoomManager.getUserDetails();
    thread_id = chat.get(ChatRoomManager.THREAD_ID);
    root = FirebaseDatabase.getInstance().getReference().child(thread_id);
    chatPageListAdapter.setItemClickCallback(this);
    pageEventListener(root);
    return rootView;
}
Also used : ChatPageListAdapter(ingage.ingage.adapters.ChatPageListAdapter) ChatRoomManager(ingage.ingage.managers.ChatRoomManager)

Aggregations

ChatPageListAdapter (ingage.ingage.adapters.ChatPageListAdapter)1 ChatRoomManager (ingage.ingage.managers.ChatRoomManager)1