mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Add time to messages when they are within the week
//FREEBIE
This commit is contained in:
parent
0574ec170a
commit
521fbc77c6
@ -27,7 +27,7 @@ public class DateUtils extends android.text.format.DateUtils {
|
||||
prettyDate = DateUtils.formatDateTime(c, millis, DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_ABBREV_TIME);
|
||||
} else if (isWithinWeek(millis)) {
|
||||
prettyDate = DateUtils.formatDateTime(c, millis,
|
||||
DateUtils.FORMAT_SHOW_WEEKDAY | DateUtils.FORMAT_ABBREV_WEEKDAY);
|
||||
DateUtils.FORMAT_SHOW_WEEKDAY | DateUtils.FORMAT_ABBREV_WEEKDAY | DateUtils.FORMAT_SHOW_TIME);
|
||||
} else if (isWithinYear(millis)) {
|
||||
prettyDate = DateUtils.formatDateTime(c, millis,
|
||||
DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user