Skip to content

Commit

Permalink
Apply Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeroseman authored and github-actions[bot] committed Feb 25, 2025
1 parent 73c652a commit e5d9c12
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ fun SwipeItem(
) {
when (swipeToDismissBoxState.dismissDirection) {
SwipeToDismissBoxValue.StartToEnd -> {
val icon = if(todoItem.isItemDone) {
val icon = if (todoItem.isItemDone) {
Icons.Default.CheckBox
} else {
Icons.Default.CheckBoxOutlineBlank
}

val contentDescription = if(todoItem.isItemDone) "Done" else "Not done"
val contentDescription = if (todoItem.isItemDone) "Done" else "Not done"

Icon(
icon,
Expand Down Expand Up @@ -257,13 +257,13 @@ fun SwipeCardItem(
) {
when (swipeToDismissState.dismissDirection) {
SwipeToDismissBoxValue.StartToEnd -> {
val icon = if(todoItem.isItemDone) {
val icon = if (todoItem.isItemDone) {
Icons.Default.CheckBox
} else {
Icons.Default.CheckBoxOutlineBlank
}

val contentDescription = if(todoItem.isItemDone) "Done" else "Not done"
val contentDescription = if (todoItem.isItemDone) "Done" else "Not done"

Icon(icon, contentDescription, Modifier.padding(12.dp), tint = Color.White)
}
Expand Down

0 comments on commit e5d9c12

Please sign in to comment.