Minor code cleanup

This commit is contained in:
Juha Heinanen
2025-10-21 11:33:14 +03:00
parent a051885eca
commit 6e4c771495
@@ -1175,10 +1175,9 @@ private fun CallUriRow(ctx: Context, viewModel: ViewModel) {
.focusRequester(focusRequester) .focusRequester(focusRequester)
.onFocusChanged { .onFocusChanged {
val account = Account.ofAor(viewModel.selectedAor.value) val account = Account.ofAor(viewModel.selectedAor.value)
if (account != null) if (account != null && account.numericKeypad)
if (account.numericKeypad) if (!isDialpadVisible)
if (isDialpadVisible) viewModel.toggleDialpadVisibility()
viewModel.toggleDialpadVisibility()
}, },
label = { Text(text = callUriLabel.value, fontSize = 18.sp) }, label = { Text(text = callUriLabel.value, fontSize = 18.sp) },
textStyle = TextStyle(fontSize = 18.sp), textStyle = TextStyle(fontSize = 18.sp),