mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
Update issue 1623
Don't export the formatted date through the content provider: now exported as the raw Epoch value - date formatting is a UI concern. That makes MessageInfoHolder lighter.
This commit is contained in:
parent
58c80ad096
commit
548e6e7c77
@ -7,7 +7,6 @@ public class MessageInfoHolder
|
||||
{
|
||||
public String subject;
|
||||
public String date;
|
||||
public String fullDate;
|
||||
public Date compareDate;
|
||||
public String compareSubject;
|
||||
public CharSequence sender;
|
||||
|
@ -113,7 +113,6 @@ public class MessageHelper
|
||||
target.message = m;
|
||||
target.preview = message.getPreview();
|
||||
|
||||
target.fullDate = mDateFormat.format(date) + " " + mTimeFormat.format(date);
|
||||
target.account = account.getDescription();
|
||||
target.uri = "email://messages/" + account.getAccountNumber() + "/" + m.getFolder().getName() + "/" + m.getUid();
|
||||
|
||||
|
@ -124,7 +124,7 @@ public class MessageProvider extends ContentProvider
|
||||
cursor.addRow(new Object[]
|
||||
{
|
||||
id,
|
||||
holder.fullDate,
|
||||
message.getSentDate().getTime(),
|
||||
holder.sender,
|
||||
holder.subject,
|
||||
holder.preview,
|
||||
|
Loading…
Reference in New Issue
Block a user