mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Display contact icons correctly in MMS ConversationItems
This commit is contained in:
parent
cf9dc51f31
commit
3cf77b6fd0
@ -43,7 +43,6 @@ import org.thoughtcrime.securesms.service.MessageNotifier;
|
|||||||
import ws.com.google.android.mms.MmsException;
|
import ws.com.google.android.mms.MmsException;
|
||||||
|
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map.Entry;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A cursor adapter for a conversation thread. Ultimately
|
* A cursor adapter for a conversation thread. Ultimately
|
||||||
@ -175,8 +174,8 @@ public class ConversationAdapter extends CursorAdapter {
|
|||||||
|
|
||||||
MessageRecord messageRecord;
|
MessageRecord messageRecord;
|
||||||
|
|
||||||
if (type.equals("mms")) messageRecord = getNewMmsMessageRecord(messageId, cursor);
|
if (type.equals("mms")) messageRecord = getNewMmsMessageRecord(messageId, cursor);
|
||||||
else messageRecord = getNewSmsMessageRecord(messageId, cursor);
|
else messageRecord = getNewSmsMessageRecord(messageId, cursor);
|
||||||
|
|
||||||
messageRecordCache.put(type + messageId, messageRecord);
|
messageRecordCache.put(type + messageId, messageRecord);
|
||||||
return messageRecord;
|
return messageRecord;
|
||||||
|
@ -50,9 +50,10 @@ public class Recipient implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Recipient(Parcel in) {
|
public Recipient(Parcel in) {
|
||||||
this.name = in.readString();
|
this.name = in.readString();
|
||||||
this.number = in.readString();
|
this.number = in.readString();
|
||||||
this.contactUri = in.readParcelable(null);
|
this.contactUri = in.readParcelable(null);
|
||||||
|
this.contactPhoto = in.readParcelable(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Uri getContactUri() {
|
public Uri getContactUri() {
|
||||||
@ -75,6 +76,7 @@ public class Recipient implements Parcelable {
|
|||||||
dest.writeString(name);
|
dest.writeString(name);
|
||||||
dest.writeString(number);
|
dest.writeString(number);
|
||||||
dest.writeParcelable(contactUri, 0);
|
dest.writeParcelable(contactUri, 0);
|
||||||
|
dest.writeParcelable(contactPhoto, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toShortString() {
|
public String toShortString() {
|
||||||
|
Loading…
Reference in New Issue
Block a user