mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Cache the message subject in a localMessage, rather than roundtripping through a MIME message
This commit is contained in:
parent
e354ba17b6
commit
bd09b880e9
@ -2083,6 +2083,30 @@ public class LocalStore extends Store implements Serializable
|
||||
{
|
||||
private long mId;
|
||||
private int mAttachmentCount;
|
||||
private String mSubject;
|
||||
|
||||
@Override
|
||||
public String getSubject() throws MessagingException
|
||||
{
|
||||
if (mSubject != null)
|
||||
{
|
||||
return mSubject;
|
||||
}
|
||||
else
|
||||
{
|
||||
return super.getSubject();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSubject(String subject) throws MessagingException
|
||||
{
|
||||
mSubject = subject;
|
||||
super.setSubject(subject);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public LocalMessage()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user