Skip to content

Commit

Permalink
Made a week mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-ananiev committed Feb 14, 2023
1 parent 058541a commit 1cd2fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface CurrentState {
public companion object {
@Suppress("FunctionName") // Factory function
public fun Saver(): Saver<CurrentState, String> = Saver(
save = { it.toString() },
save = { it.day.toString() },
restore = { CurrentState(LocalDate.parse(it)) }
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface ModeState {
public companion object {
@Suppress("FunctionName") // Factory function
public fun Saver(): Saver<ModeState, String> = Saver(
save = { it.toString() },
save = { it.isMonthMode.toString() },
restore = { ModeState(it.toBoolean()) }
)
}
Expand Down

0 comments on commit 1cd2fdf

Please sign in to comment.