mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Fix bug with schedule end being set to midnight.
This commit is contained in:
committed by
Greyson Parrelli
parent
b69ffe4e15
commit
adcb1bae13
@@ -60,7 +60,8 @@ class EditNotificationProfileScheduleViewModel(
|
||||
}
|
||||
|
||||
fun setEndTime(hour: Int, minute: Int) {
|
||||
scheduleSubject.onNext(schedule.copy(end = hour * 100 + minute))
|
||||
val adjustedEndHour = if (hour == 0) 24 else hour
|
||||
scheduleSubject.onNext(schedule.copy(end = adjustedEndHour * 100 + minute))
|
||||
}
|
||||
|
||||
fun setEnabled(enabled: Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user