mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Removed unused message header constructors.
This commit is contained in:
@@ -208,8 +208,10 @@ implements DatabaseListener, OnClickListener, OnItemClickListener {
|
|||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
if(messageIds.add(m.getId())) {
|
if(messageIds.add(m.getId())) {
|
||||||
adapter.add(new PrivateMessageHeader(m, !incoming, false,
|
adapter.add(new PrivateMessageHeader(m.getId(),
|
||||||
contactId, incoming));
|
m.getParent(), m.getContentType(), m.getSubject(),
|
||||||
|
m.getTimestamp(), !incoming, false, contactId,
|
||||||
|
incoming));
|
||||||
adapter.sort(AscendingHeaderComparator.INSTANCE);
|
adapter.sort(AscendingHeaderComparator.INSTANCE);
|
||||||
selectFirstUnread();
|
selectFirstUnread();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package net.sf.briar.api.db;
|
|||||||
import net.sf.briar.api.Rating;
|
import net.sf.briar.api.Rating;
|
||||||
import net.sf.briar.api.messaging.Author;
|
import net.sf.briar.api.messaging.Author;
|
||||||
import net.sf.briar.api.messaging.GroupId;
|
import net.sf.briar.api.messaging.GroupId;
|
||||||
import net.sf.briar.api.messaging.Message;
|
|
||||||
import net.sf.briar.api.messaging.MessageId;
|
import net.sf.briar.api.messaging.MessageId;
|
||||||
|
|
||||||
public class GroupMessageHeader extends MessageHeader {
|
public class GroupMessageHeader extends MessageHeader {
|
||||||
@@ -21,13 +20,6 @@ public class GroupMessageHeader extends MessageHeader {
|
|||||||
this.rating = rating;
|
this.rating = rating;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GroupMessageHeader(Message m, boolean read, boolean starred,
|
|
||||||
Rating rating) {
|
|
||||||
this(m.getId(), m.getParent(), m.getContentType(), m.getSubject(),
|
|
||||||
m.getTimestamp(), read, starred, m.getGroup().getId(),
|
|
||||||
m.getAuthor(), rating);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Returns the ID of the group to which the message belongs. */
|
/** Returns the ID of the group to which the message belongs. */
|
||||||
public GroupId getGroupId() {
|
public GroupId getGroupId() {
|
||||||
return groupId;
|
return groupId;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package net.sf.briar.api.db;
|
package net.sf.briar.api.db;
|
||||||
|
|
||||||
import net.sf.briar.api.ContactId;
|
import net.sf.briar.api.ContactId;
|
||||||
import net.sf.briar.api.messaging.Message;
|
|
||||||
import net.sf.briar.api.messaging.MessageId;
|
import net.sf.briar.api.messaging.MessageId;
|
||||||
|
|
||||||
public class PrivateMessageHeader extends MessageHeader {
|
public class PrivateMessageHeader extends MessageHeader {
|
||||||
@@ -17,12 +16,6 @@ public class PrivateMessageHeader extends MessageHeader {
|
|||||||
this.incoming = incoming;
|
this.incoming = incoming;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PrivateMessageHeader(Message m, boolean read, boolean starred,
|
|
||||||
ContactId contactId, boolean incoming) {
|
|
||||||
this(m.getId(), m.getParent(), m.getContentType(), m.getSubject(),
|
|
||||||
m.getTimestamp(), read, starred, contactId, incoming);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the ID of the contact who is the sender (if incoming) or
|
* Returns the ID of the contact who is the sender (if incoming) or
|
||||||
* recipient (if outgoing) of this message.
|
* recipient (if outgoing) of this message.
|
||||||
|
|||||||
Reference in New Issue
Block a user