mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 02:39:55 +01:00
Fix bugs with notification schedules caused by 24xx end times.
This commit is contained in:
committed by
Greyson Parrelli
parent
5cd0062688
commit
30ad854381
@@ -60,8 +60,7 @@ class EditNotificationProfileScheduleViewModel(
|
||||
}
|
||||
|
||||
fun setEndTime(hour: Int, minute: Int) {
|
||||
val adjustedEndHour = if (hour == 0) 24 else hour
|
||||
scheduleSubject.onNext(schedule.copy(end = adjustedEndHour * 100 + minute))
|
||||
scheduleSubject.onNext(schedule.copy(end = hour * 100 + minute))
|
||||
}
|
||||
|
||||
fun setEnabled(enabled: Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user