Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/components/compose/view
Nik Clayton 5d4c14aed9
Correct the calculations for choosing the earliest day to show in the calendar / selected day (#3923)
To determine the earliest day to show in the calendar, take the current
date/time, add the minimum scheduled seconds buffer (which may roll the
date/time over to the next day), and then clamp to the start of that
day. So it's either today (if the current time + minimum scheduled
seconds is less than midnight) or it's tomorrow.

When displaying the calendar work around a misfeature in Material Date
Picker. It accepts UTC seconds-since-epoch, but does not convert it to
the local time for display.

While I'm here, show the selected day in the time picker's title.

Fixes https://github.com/tuskyapp/Tusky/issues/3916
2023-08-07 19:30:08 +02:00
..
ComposeOptionsView.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ComposeScheduleView.kt Correct the calculations for choosing the earliest day to show in the calendar / selected day (#3923) 2023-08-07 19:30:08 +02:00
EditTextTyped.kt Ensure text content is always pasted as plain text (#3083) 2022-12-30 11:41:48 +01:00
FocusIndicatorView.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
PollPreviewView.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ProgressImageView.kt Convert BezelImageView, EndlessOnScrollListener, ComposeScheduleView, ProgressImageView to Kotlin (#3147) 2023-01-13 19:49:56 +01:00
TootButton.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00