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 subject;
|
||||||
public String date;
|
public String date;
|
||||||
public String fullDate;
|
|
||||||
public Date compareDate;
|
public Date compareDate;
|
||||||
public String compareSubject;
|
public String compareSubject;
|
||||||
public CharSequence sender;
|
public CharSequence sender;
|
||||||
|
@ -113,7 +113,6 @@ public class MessageHelper
|
|||||||
target.message = m;
|
target.message = m;
|
||||||
target.preview = message.getPreview();
|
target.preview = message.getPreview();
|
||||||
|
|
||||||
target.fullDate = mDateFormat.format(date) + " " + mTimeFormat.format(date);
|
|
||||||
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();
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ public class MessageProvider extends ContentProvider
|
|||||||
cursor.addRow(new Object[]
|
cursor.addRow(new Object[]
|
||||||
{
|
{
|
||||||
id,
|
id,
|
||||||
holder.fullDate,
|
message.getSentDate().getTime(),
|
||||||
holder.sender,
|
holder.sender,
|
||||||
holder.subject,
|
holder.subject,
|
||||||
holder.preview,
|
holder.preview,
|
||||||
|
Loading…
Reference in New Issue
Block a user