Skip to content

Commit fc96dce

Browse files
committed
(Calendar) Fix bug when navigating quickly between months and weeks #19
1 parent 4f30f14 commit fc96dce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

calendar/src/main/java/com/maxkeppeler/sheets/calendar/views/CalendarTopComponent.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ internal fun CalendarTopComponent(
105105
colors = IconButtonDefaults.filledIconButtonColors(containerColor = MaterialTheme.colorScheme.secondaryContainer),
106106
modifier = Modifier
107107
.size(dimensionResource(RC.dimen.scd_size_200)),
108+
enabled = !navigationDisabled && !prevDisabled,
108109
onClick = onPrev
109110
) {
110111
Icon(
@@ -191,6 +192,7 @@ internal fun CalendarTopComponent(
191192
FilledIconButton(
192193
colors = IconButtonDefaults.filledIconButtonColors(containerColor = MaterialTheme.colorScheme.secondaryContainer),
193194
modifier = Modifier.size(dimensionResource(RC.dimen.scd_size_200)),
195+
enabled = !navigationDisabled && !nextDisabled,
194196
onClick = onNext
195197
) {
196198
Icon(

0 commit comments

Comments
 (0)