Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/2.0.x' into fix/camera_item_blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwalli authored Apr 12, 2021
2 parents 75ef038 + a09d78f commit e77123c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ class ActiveCheckInVH(parent: ViewGroup) :
traceLocationCardHighlightView.setCaption(startDate.toString(DateTimeFormat.mediumDate()))

checkoutInfo.text = run {
val checkoutAt = curItem.checkin.checkInEnd
val checkoutIn = Duration(Instant.now(), checkoutAt).let {
val checkoutIn = Duration(curItem.checkin.checkInStart, curItem.checkin.checkInEnd).let {
val periodType = when {
it.isLongerThan(Duration.standardHours(1)) -> PeriodType.hours()
it.isLongerThan(Duration.standardDays(1)) -> PeriodType.days()
Expand Down

0 comments on commit e77123c

Please sign in to comment.