From d1e6b0ffa822bdcd8340cd7ebf2fdda3891a8384 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 10 Mar 2010 20:46:07 +0100 Subject: [PATCH] MessageListAdapter now uses conversations instead of channels --- src/org/yaaic/adapter/MessageListAdapter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/org/yaaic/adapter/MessageListAdapter.java b/src/org/yaaic/adapter/MessageListAdapter.java index d9528c4..3949694 100644 --- a/src/org/yaaic/adapter/MessageListAdapter.java +++ b/src/org/yaaic/adapter/MessageListAdapter.java @@ -22,7 +22,7 @@ package org.yaaic.adapter; import java.util.LinkedList; -import org.yaaic.model.Channel; +import org.yaaic.model.Conversation; import org.yaaic.model.Message; import android.content.Context; @@ -47,22 +47,22 @@ public class MessageListAdapter extends BaseAdapter * @param channel * @param context */ - public MessageListAdapter(Channel channel, Context context) + public MessageListAdapter(Conversation conversation, Context context) { this.context = context; // Render channel name as first message in channel // XXX: There will be no messages shown if channel is empty, why? - Message header = new Message(channel.getName()); + Message header = new Message(conversation.getName()); header.setColor(Message.COLOR_RED); messages.add(header.renderTextView(context)); - for (Message message : channel.getHistory()) { + for (Message message : conversation.getHistory()) { messages.add(message.renderTextView(context)); } - channel.clearBuffer(); + conversation.clearBuffer(); } /**