mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix conflict when manually enabled an older profile with a schedule overlap with a newer profile.
This commit is contained in:
@@ -60,7 +60,7 @@ data class NotificationProfileSchedule(
|
||||
}
|
||||
|
||||
fun endDateTime(now: LocalDateTime): LocalDateTime {
|
||||
return end.toLocalDateTime(now)
|
||||
return end.toLocalDateTime(now).plusDays(if (end < start) 1 else 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user