mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-17 22:35:08 -05:00
fix forgotten spelling.
This commit is contained in:
parent
85b31b8d8b
commit
98dabe9ab4
@ -34,7 +34,7 @@ import android.widget.Toast;
|
|||||||
public class MessageAdapter extends ArrayAdapter<Message> {
|
public class MessageAdapter extends ArrayAdapter<Message> {
|
||||||
|
|
||||||
private static final int SENT = 0;
|
private static final int SENT = 0;
|
||||||
private static final int RECIEVED = 1;
|
private static final int RECEIVED = 1;
|
||||||
private static final int STATUS = 2;
|
private static final int STATUS = 2;
|
||||||
|
|
||||||
private ConversationActivity activity;
|
private ConversationActivity activity;
|
||||||
@ -82,7 +82,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||||||
if (getItem(position).getType() == Message.TYPE_STATUS) {
|
if (getItem(position).getType() == Message.TYPE_STATUS) {
|
||||||
return STATUS;
|
return STATUS;
|
||||||
} else if (getItem(position).getStatus() <= Message.STATUS_RECEIVED) {
|
} else if (getItem(position).getStatus() <= Message.STATUS_RECEIVED) {
|
||||||
return RECIEVED;
|
return RECEIVED;
|
||||||
} else {
|
} else {
|
||||||
return SENT;
|
return SENT;
|
||||||
}
|
}
|
||||||
@ -319,7 +319,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||||||
.findViewById(R.id.message_time);
|
.findViewById(R.id.message_time);
|
||||||
view.setTag(viewHolder);
|
view.setTag(viewHolder);
|
||||||
break;
|
break;
|
||||||
case RECIEVED:
|
case RECEIVED:
|
||||||
view = (View) activity.getLayoutInflater().inflate(
|
view = (View) activity.getLayoutInflater().inflate(
|
||||||
R.layout.message_received, parent, false);
|
R.layout.message_received, parent, false);
|
||||||
viewHolder.message_box = (LinearLayout) view
|
viewHolder.message_box = (LinearLayout) view
|
||||||
@ -386,7 +386,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == RECIEVED) {
|
if (type == RECEIVED) {
|
||||||
if (item.getConversation().getMode() == Conversation.MODE_MULTI) {
|
if (item.getConversation().getMode() == Conversation.MODE_MULTI) {
|
||||||
Contact contact = item.getContact();
|
Contact contact = item.getContact();
|
||||||
if (contact != null) {
|
if (contact != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user