Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/components
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
..
account Simplify repeated code that shows errors (#3762) 2023-06-19 23:49:20 +02:00
accountlist Cache locked state of connected accounts (#3790) 2023-07-27 00:09:26 +02:00
announcements Officially rename error elephant to errorphant (#3922) 2023-08-05 15:39:07 +02:00
compose Correct the calculations for choosing the earliest day to show in the calendar / selected day (#3923) 2023-08-07 19:30:08 +02:00
conversation Migrate "room" from "kapt" to "ksp" (#3777) 2023-06-29 18:37:46 +02:00
drafts update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
filters Officially rename error elephant to errorphant (#3922) 2023-08-05 15:39:07 +02:00
followedtags Simplify repeated code that shows errors (#3762) 2023-06-19 23:49:20 +02:00
instanceinfo Show additional bug report info in AboutActivity (#3802) 2023-08-03 12:20:35 +02:00
instancemute Simplify repeated code that shows errors (#3762) 2023-06-19 23:49:20 +02:00
login Kotlin 1.9.0 (#3835) 2023-08-02 09:04:24 +02:00
notifications Officially rename error elephant to errorphant (#3922) 2023-08-05 15:39:07 +02:00
preference Filters> Tabs: use checkbox instead of switch (#3927) 2023-08-06 11:50:11 +02:00
report Ensure text field has focus when reporting statuses 2023-05-04 14:53:27 +02:00
scheduled Simplify repeated code that shows errors (#3762) 2023-06-19 23:49:20 +02:00
search Retain text in search view when switching tabs before first search (#3540) 2023-07-19 11:40:08 +02:00
timeline Simplify repeated code that shows errors (#3762) 2023-06-19 23:49:20 +02:00
trending Officially rename error elephant to errorphant (#3922) 2023-08-05 15:39:07 +02:00
viewthread Kotlin 1.9.0 (#3835) 2023-08-02 09:04:24 +02:00