Skip to content
Snippets Groups Projects
Unverified Commit 048d5e4a authored by Lukas Lechner's avatar Lukas Lechner Committed by GitHub
Browse files

Adapt auto-checkout default values (EXPOSUREAPP-6243) (#2791)


* Prepare calculation of defaultAutoCheckoutLength

* Not allow defaultCheckInLength < 15min and > 23h45min

* Add more test cases

* Make some tests green

* Make ALL tests green

* Disable Confirm-CheckIn Button when automatic checkout is set to 00:00

* Suppress detekt issue

* Add test for enabling and disabling the confirm button in ConfirmCheckInViewModel.kt

* Add and adapt some comments

* Extract default auto checkout duration logic to extension function

* Add test and comments for roundToNearest15Minutes

* Rename AutoCheckoutHelper.kt -> DefaultAutoCheckoutLength.kt

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 41d3c1bc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment