Skip to content

Commit 2700f7e

Browse files
committed
Redraws background on time change. Fixes #16
1 parent 26ffa94 commit 2700f7e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/src/main/java/de/tobiasschuerg/weekview/sample/EventCreator.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ object EventCreator {
3333
startTime = endTime.plusMinutes(5 + random.nextInt(95).toLong())
3434
}
3535
}
36-
earliestStart = LocalTime.MIN
3736
}
3837
}
3938

library/src/main/java/de/tobiasschuerg/weekview/view/WeekBackgroundView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ internal class WeekBackgroundView constructor(context: Context) : View(context)
207207
if (endTime.isAfter(this.endTime)) {
208208
this.endTime = endTime.truncatedTo(ChronoUnit.HOURS).plusHours(1)
209209
}
210+
requestLayout()
210211
}
211212

212213
private fun getDurationMinutes(): Long {

0 commit comments

Comments
 (0)