Search in sources :

Example 1 with PreprocessedTextData

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

the class TextHolder method bindData.

@Override
protected void bindData(final Message message, long readDate, long receiveDate, boolean isUpdated, PreprocessedData preprocessedData) {
    PreprocessedTextData textData = (PreprocessedTextData) preprocessedData;
    Spannable reactions = preprocessedData.getReactionsSpannable();
    CharSequence text;
    if (textData.getSpannableString() != null) {
        text = textData.getSpannableString();
    } else {
        text = textData.getText();
    }
    bindRawText(text, readDate, receiveDate, reactions, message, false);
}
Also used : PreprocessedTextData(im.actor.sdk.controllers.conversation.messages.content.preprocessor.PreprocessedTextData) Spannable(android.text.Spannable)

Aggregations

Spannable (android.text.Spannable)1 PreprocessedTextData (im.actor.sdk.controllers.conversation.messages.content.preprocessor.PreprocessedTextData)1