more succinct relative dates

// FREEBIE
This commit is contained in:
Jake McGinty
2015-02-05 15:16:57 -08:00
parent 8031c788d9
commit 0fd52ad1fe
5 changed files with 62 additions and 19 deletions

View File

@@ -112,10 +112,7 @@ public class ConversationListItem extends RelativeLayout
this.subjectView.setTypeface(read ? LIGHT_TYPEFACE : BOLD_TYPEFACE);
if (thread.getDate() > 0) {
CharSequence date = DateUtils.getRelativeTimeSpanString(thread.getDate(),
System.currentTimeMillis(),
DateUtils.MINUTE_IN_MILLIS,
DateUtils.FORMAT_ABBREV_RELATIVE);
CharSequence date = DateUtils.getBriefRelativeTimeSpanString(context, thread.getDate());
dateView.setText(read ? date : color(getResources().getColor(R.color.textsecure_primary), date));
dateView.setTypeface(read ? LIGHT_TYPEFACE : BOLD_TYPEFACE);
}