Added support for numeric keyboard account setting (UI is still missing)

This commit is contained in:
Juha Heinanen
2025-04-27 15:20:19 +03:00
parent b301c3db3b
commit 3d2c1b3fef
2 changed files with 18 additions and 6 deletions

View File

@ -118,6 +118,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.focus.onFocusChanged
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.graphics.vector.ImageVector
@ -1078,7 +1079,13 @@ class MainActivity : ComponentActivity() {
modifier = Modifier
.fillMaxWidth()
.padding(start = 4.dp, end = 4.dp, top = 12.dp, bottom = 2.dp)
.focusRequester(focusRequester),
.focusRequester(focusRequester)
.onFocusChanged {
val account = Account.ofAor(viewModel.selectedAor.value)
if (account != null) {
dialpad = account.numericKeyboard
}
},
label = {
LabelText(
text = callUriLabel.value,