File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/folder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import java.util.Date
3333enum class DateDisplay (@DrawableRes val icon : Int? , val formatDate : Context .(RealmInstant ) -> String ) {
3434 Default (
3535 icon = null ,
36- formatDate = { date -> formatPastDate (date) }
36+ formatDate = { date -> defaultFormatting (date) }
3737 ),
3838 Scheduled (
3939 icon = R .drawable.ic_scheduled_messages,
@@ -49,7 +49,7 @@ private fun Context.formatRelativeFutureDate(date: RealmInstant) = DateUtils.get
4949 DateUtils .FORMAT_SHOW_YEAR or DateUtils .FORMAT_ABBREV_MONTH ,
5050)?.toString() ? : " "
5151
52- private fun Context.formatPastDate (date : RealmInstant ) = with (date.toDate()) {
52+ private fun Context.defaultFormatting (date : RealmInstant ) = with (date.toDate()) {
5353 when {
5454 isInTheFuture() -> formatNumericalDayMonthYear()
5555 isToday() -> format(FORMAT_DATE_HOUR_MINUTE )
You can’t perform that action at this time.
0 commit comments