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();
}
Aggregations