Search in sources :

Example 1 with ChatAdapter

use of com.example.clown.adapter.ChatAdapter in project Skool by NhatTruongK15.

the class ChatActivity method init.

private void init() {
    preferenceManager = new PreferenceManager(getApplicationContext());
    chatMessages = new ArrayList<>();
    chatAdapter = new ChatAdapter(chatMessages, preferenceManager.getString(Constants.KEY_DOCUMENT_REFERENCE_ID), getBitmapFromEncodeString(receiverUser.image));
    binding.chatRecyclerView.setAdapter(chatAdapter);
    database = FirebaseFirestore.getInstance();
}
Also used : ChatAdapter(com.example.clown.adapter.ChatAdapter) PreferenceManager(com.example.clown.utilities.PreferenceManager)

Aggregations

ChatAdapter (com.example.clown.adapter.ChatAdapter)1 PreferenceManager (com.example.clown.utilities.PreferenceManager)1