mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 10:22:15 -05:00
Remove "preview" form messageinfoholder
This commit is contained in:
parent
f9981dcf7c
commit
60a538e071
@ -14,7 +14,6 @@ public class MessageInfoHolder
|
|||||||
public CharSequence sender;
|
public CharSequence sender;
|
||||||
public String senderAddress;
|
public String senderAddress;
|
||||||
public String compareCounterparty;
|
public String compareCounterparty;
|
||||||
public String preview;
|
|
||||||
public String[] recipients;
|
public String[] recipients;
|
||||||
public String uid;
|
public String uid;
|
||||||
public boolean read;
|
public boolean read;
|
||||||
|
@ -69,9 +69,11 @@ import com.fsck.k9.helper.Utility;
|
|||||||
import com.fsck.k9.mail.Flag;
|
import com.fsck.k9.mail.Flag;
|
||||||
import com.fsck.k9.mail.Folder;
|
import com.fsck.k9.mail.Folder;
|
||||||
import com.fsck.k9.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.fsck.k9.mail.store.LocalStore;
|
import com.fsck.k9.mail.store.LocalStore;
|
||||||
import com.fsck.k9.mail.store.StorageManager;
|
import com.fsck.k9.mail.store.StorageManager;
|
||||||
import com.fsck.k9.mail.store.LocalStore.LocalFolder;
|
import com.fsck.k9.mail.store.LocalStore.LocalFolder;
|
||||||
|
import com.fsck.k9.mail.store.LocalStore.LocalMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MessageList is the primary user interface for the program. This Activity
|
* MessageList is the primary user interface for the program. This Activity
|
||||||
@ -2778,7 +2780,7 @@ public class MessageList
|
|||||||
* from.
|
* from.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
holder.preview.setText(new SpannableStringBuilder(recipientSigil(message)).append(message.sender).append(" ").append(message.preview),
|
holder.preview.setText(new SpannableStringBuilder(recipientSigil(message)).append(message.sender).append(" ").append(message.message.getPreview()),
|
||||||
TextView.BufferType.SPANNABLE);
|
TextView.BufferType.SPANNABLE);
|
||||||
Spannable str = (Spannable)holder.preview.getText();
|
Spannable str = (Spannable)holder.preview.getText();
|
||||||
|
|
||||||
|
@ -121,7 +121,6 @@ public class MessageHelper
|
|||||||
target.subject = message.getSubject();
|
target.subject = message.getSubject();
|
||||||
|
|
||||||
target.uid = message.getUid();
|
target.uid = message.getUid();
|
||||||
target.preview = message.getPreview();
|
|
||||||
|
|
||||||
target.account = account.getDescription();
|
target.account = account.getDescription();
|
||||||
target.uri = "email://messages/" + account.getAccountNumber() + "/" + m.getFolder().getName() + "/" + m.getUid();
|
target.uri = "email://messages/" + account.getAccountNumber() + "/" + m.getFolder().getName() + "/" + m.getUid();
|
||||||
|
@ -165,7 +165,7 @@ public class MessageProvider extends ContentProvider
|
|||||||
@Override
|
@Override
|
||||||
public String getField(final MessageInfoHolder source)
|
public String getField(final MessageInfoHolder source)
|
||||||
{
|
{
|
||||||
return source.preview;
|
return source.message.getPreview();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static class UriExtractor implements FieldExtractor<MessageInfoHolder, String>
|
public static class UriExtractor implements FieldExtractor<MessageInfoHolder, String>
|
||||||
|
Loading…
Reference in New Issue
Block a user