mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-23 14:42:22 -05:00
Removed synchronized list from MessageListAdapter
This commit is contained in:
parent
df86967d69
commit
ac3fe7bb57
@ -20,9 +20,7 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
package org.yaaic.adapter;
|
package org.yaaic.adapter;
|
||||||
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.yaaic.model.Conversation;
|
import org.yaaic.model.Conversation;
|
||||||
import org.yaaic.model.Message;
|
import org.yaaic.model.Message;
|
||||||
@ -40,7 +38,7 @@ import android.widget.TextView;
|
|||||||
*/
|
*/
|
||||||
public class MessageListAdapter extends BaseAdapter
|
public class MessageListAdapter extends BaseAdapter
|
||||||
{
|
{
|
||||||
private List<TextView> messages;
|
private LinkedList<TextView> messages;
|
||||||
private Context context;
|
private Context context;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -51,7 +49,7 @@ public class MessageListAdapter extends BaseAdapter
|
|||||||
*/
|
*/
|
||||||
public MessageListAdapter(Conversation conversation, Context context)
|
public MessageListAdapter(Conversation conversation, Context context)
|
||||||
{
|
{
|
||||||
this.messages = Collections.synchronizedList(new LinkedList<TextView>());
|
this.messages = new LinkedList<TextView>();
|
||||||
this.context = context;
|
this.context = context;
|
||||||
|
|
||||||
// Render channel name as first message in channel
|
// Render channel name as first message in channel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user