From be7c2fa6621c2401d160469e79a5bd44c8c0f2fb Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Tue, 29 Jul 2025 15:06:57 +0200 Subject: [PATCH] align reminder options with web Signed-off-by: sowjanyakch --- .../talk/ui/dialog/DateTimeCompose.kt | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/DateTimeCompose.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/DateTimeCompose.kt index dc233919c..a44962d25 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/DateTimeCompose.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/DateTimeCompose.kt @@ -230,16 +230,14 @@ class DateTimeCompose(val bundle: Bundle) { } } - if (tomorrow.dayOfWeek < DayOfWeek.SATURDAY) { - TimeOption( - label = stringResource(R.string.tomorrow), - timeString = tomorrowStr - ) { - setTime(tomorrow) - } + TimeOption( + label = stringResource(R.string.tomorrow), + timeString = tomorrowStr + ) { + setTime(tomorrow) } - if (currTime.dayOfWeek < DayOfWeek.SATURDAY) { + if (currTime.dayOfWeek < DayOfWeek.FRIDAY) { TimeOption( label = stringResource(R.string.this_weekend), timeString = thisWeekendStr @@ -248,11 +246,13 @@ class DateTimeCompose(val bundle: Bundle) { } } - TimeOption( - label = stringResource(R.string.next_week), - timeString = nextWeekStr - ) { - setTime(nextWeek) + if (currTime.dayOfWeek != DayOfWeek.SUNDAY) { + TimeOption( + label = stringResource(R.string.next_week), + timeString = nextWeekStr + ) { + setTime(nextWeek) + } } HorizontalDivider()