mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00:00
Clean up a little bit
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
e5841ff6ec
commit
de0044b637
@ -86,6 +86,7 @@ import com.otaliastudios.autocomplete.AutocompletePresenter;
|
||||
import com.otaliastudios.autocomplete.CharPolicy;
|
||||
import com.stfalcon.chatkit.commons.ImageLoader;
|
||||
import com.stfalcon.chatkit.commons.models.IMessage;
|
||||
import com.stfalcon.chatkit.messages.MessageHolders;
|
||||
import com.stfalcon.chatkit.messages.MessageInput;
|
||||
import com.stfalcon.chatkit.messages.MessagesList;
|
||||
import com.stfalcon.chatkit.messages.MessagesListAdapter;
|
||||
@ -297,13 +298,11 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
||||
|
||||
adapterWasNull = true;
|
||||
|
||||
MessagesListAdapter.HoldersConfig holdersConfig = new MessagesListAdapter.HoldersConfig();
|
||||
holdersConfig.setIncoming(MagicIncomingTextMessageViewHolder.class,
|
||||
R.layout.item_custom_incoming_text_message);
|
||||
holdersConfig.setOutcoming(MagicOutcomingTextMessageViewHolder.class,
|
||||
R.layout.item_custom_outcoming_text_message);
|
||||
MessageHolders messageHolders = new MessageHolders();
|
||||
messageHolders.setIncomingTextConfig(MagicIncomingTextMessageViewHolder.class, R.layout.item_custom_incoming_text_message);
|
||||
messageHolders.setOutcomingTextConfig(MagicOutcomingTextMessageViewHolder.class, R.layout.item_custom_outcoming_text_message);
|
||||
|
||||
adapter = new MessagesListAdapter<>(conversationUser.getUserId(), holdersConfig, new ImageLoader() {
|
||||
adapter = new MessagesListAdapter<>(conversationUser.getUserId(), messageHolders, new ImageLoader() {
|
||||
@Override
|
||||
public void loadImage(ImageView imageView, String url) {
|
||||
GlideApp.with(NextcloudTalkApplication.getSharedApplication().getApplicationContext())
|
||||
|
Loading…
Reference in New Issue
Block a user