File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/folder Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,8 @@ class ThreadListAdapter @Inject constructor(
489
489
}
490
490
491
491
private fun Thread.computeDateDisplay () = when {
492
- numberOfScheduledDrafts > 0 && folderRole == FolderRole .SCHEDULED_DRAFTS -> DateDisplay .Scheduled
493
- else -> DateDisplay .Default
492
+ numberOfScheduledDrafts > 0 && folderRole == FolderRole .SCHEDULED_DRAFTS -> ThreadListDateDisplay .Scheduled
493
+ else -> ThreadListDateDisplay .Default
494
494
}
495
495
496
496
private fun CardviewThreadItemBinding.setThreadUiRead () {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import io.realm.kotlin.types.RealmInstant
30
30
import java.time.format.FormatStyle
31
31
import java.util.Date
32
32
33
- enum class DateDisplay (@DrawableRes val icon : Int? , val formatDate : Context .(RealmInstant ) -> String ) {
33
+ enum class ThreadListDateDisplay (@DrawableRes val icon : Int? , val formatDate : Context .(RealmInstant ) -> String ) {
34
34
Default (
35
35
icon = null ,
36
36
formatDate = { date -> defaultFormatting(date) }
You can’t perform that action at this time.
0 commit comments