mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Merge pull request #1383 from jocelynthode/master
Add time to messages when they are within the week
This commit is contained in:
commit
716519f4b8
@ -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);
|
prettyDate = DateUtils.formatDateTime(c, millis, DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_ABBREV_TIME);
|
||||||
} else if (isWithinWeek(millis)) {
|
} else if (isWithinWeek(millis)) {
|
||||||
prettyDate = DateUtils.formatDateTime(c, 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)) {
|
} else if (isWithinYear(millis)) {
|
||||||
prettyDate = DateUtils.formatDateTime(c, millis,
|
prettyDate = DateUtils.formatDateTime(c, millis,
|
||||||
DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL);
|
DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user