From 609e69a8016ef9dfe05c9ebfddd7e149f1037c05 Mon Sep 17 00:00:00 2001 From: Veeti Paananen Date: Thu, 24 Jul 2014 17:26:46 +0300 Subject: [PATCH] Show date and year for ancient (> 1 year old) messages The timestamp shown for very old messages only includes the time without a date at all. Fix it. FREEBIE. --- src/org/thoughtcrime/securesms/util/DateUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/util/DateUtils.java b/src/org/thoughtcrime/securesms/util/DateUtils.java index c55b44df73..21650df001 100644 --- a/src/org/thoughtcrime/securesms/util/DateUtils.java +++ b/src/org/thoughtcrime/securesms/util/DateUtils.java @@ -43,7 +43,7 @@ public class DateUtils extends android.text.format.DateUtils { } else if (isWithinYear(millis)) { formatFlags |= DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL; } else { - formatFlags |= DateUtils.FORMAT_NUMERIC_DATE; + formatFlags |= DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_ALL; } } return DateUtils.formatDateTime(c, millis, formatFlags);