Search in sources :

Example 1 with PreprocessedList

use of im.actor.sdk.controllers.conversation.messages.content.preprocessor.PreprocessedList in project actor-platform by actorapp.

the class MessagesAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(AbsMessageViewHolder dialogHolder, int index, Message item) {
    Message prev = null;
    Message next = null;
    if (index > 1) {
        next = getItem(index - 1);
    }
    if (index < getItemCount() - 1) {
        prev = getItem(index + 1);
    }
    PreprocessedList list = ((PreprocessedList) getPreprocessedList());
    dialogHolder.bindData(item, prev, next, readDate, receiveDate, list.getPreprocessedData()[index]);
}
Also used : Message(im.actor.core.entity.Message) PreprocessedList(im.actor.sdk.controllers.conversation.messages.content.preprocessor.PreprocessedList)

Aggregations

Message (im.actor.core.entity.Message)1 PreprocessedList (im.actor.sdk.controllers.conversation.messages.content.preprocessor.PreprocessedList)1