1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

Remove "preview" form messageinfoholder

This commit is contained in:
Jesse Vincent 2010-11-27 04:03:02 +00:00
parent f9981dcf7c
commit 60a538e071
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,6 @@ public class MessageInfoHolder
public CharSequence sender;
public String senderAddress;
public String compareCounterparty;
public String preview;
public String[] recipients;
public String uid;
public boolean read;

View File

@ -69,9 +69,11 @@ import com.fsck.k9.helper.Utility;
import com.fsck.k9.mail.Flag;
import com.fsck.k9.mail.Folder;
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.StorageManager;
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
@ -2778,7 +2780,7 @@ public class MessageList
* 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);
Spannable str = (Spannable)holder.preview.getText();

View File

@ -121,7 +121,6 @@ public class MessageHelper
target.subject = message.getSubject();
target.uid = message.getUid();
target.preview = message.getPreview();
target.account = account.getDescription();
target.uri = "email://messages/" + account.getAccountNumber() + "/" + m.getFolder().getName() + "/" + m.getUid();

View File

@ -165,7 +165,7 @@ public class MessageProvider extends ContentProvider
@Override
public String getField(final MessageInfoHolder source)
{
return source.preview;
return source.message.getPreview();
}
}
public static class UriExtractor implements FieldExtractor<MessageInfoHolder, String>