Search in sources :

Example 1 with ChatPageListAdapter

use of ingage.ingage20.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.ingage20.adapters.ChatPageListAdapter) ChatRoomManager(ingage.ingage20.managers.ChatRoomManager)

Aggregations

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