Skip to content

Commit

Permalink
refactor #818 Modify arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Dec 28, 2021
1 parent 25ad707 commit 6716fd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import kotlinx.coroutines.launch
class DebouncedCalculatorUseCase(
private val inputChannel: Channel<String>,
private val currentFactorProvider: () -> Factor,
private val setText: (String) -> Unit,
private val setText: (Int) -> Unit,
private val calculator: Calculator = Calculator(),
private val ioDispatcher: CoroutineDispatcher = Dispatchers.IO,
private val mainDispatcher: CoroutineDispatcher = Dispatchers.Main
Expand All @@ -48,7 +48,7 @@ class DebouncedCalculatorUseCase(
factor.renovationReserves
)

setText("Monthly payment: $payment")
setText(payment)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class LoanCalculatorFragment : Fragment() {
extractInt(binding?.monthlyRenovationReserves)
)
},
{ binding?.result?.text = it }
{ binding?.result?.text = "Monthly payment: $it" }
).invoke()
}

Expand Down

0 comments on commit 6716fd5

Please sign in to comment.