Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/components/compose
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
..
dialog Kotlin 1.9.0 (#3835) 2023-08-02 09:04:24 +02:00
view Correct the calculations for choosing the earliest day to show in the calendar / selected day (#3923) 2023-08-07 19:30:08 +02:00
ComposeActivity.kt Show the throwable error message when an upload fails (#3838) 2023-07-26 23:36:29 +02:00
ComposeAutoCompleteAdapter.kt modernize autocomplete (#2510) 2022-05-17 19:55:37 +02:00
ComposeTokenizer.kt update Kotlin to 1.7.10 and fix some (new?) warnings (#2647) 2022-08-07 19:36:09 +02:00
ComposeViewModel.kt Kotlin 1.9.0 (#3835) 2023-08-02 09:04:24 +02:00
ImageDownsizer.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
MediaPreviewAdapter.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
MediaUploader.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00