Use string show_call instead of dial
This commit is contained in:
@ -293,10 +293,10 @@ private fun ContactsScreen(navController: NavController) {
|
||||
}
|
||||
|
||||
val call = stringResource(R.string.call)
|
||||
val dial = stringResource(R.string.dial)
|
||||
val showCall = stringResource(R.string.show_call)
|
||||
|
||||
val contactActionName = remember(BaresipService.contactAction) {
|
||||
listOf(if (BaresipService.contactAction == "call") call else dial)
|
||||
listOf(if (BaresipService.contactAction == "call") call else showCall)
|
||||
}
|
||||
|
||||
val contactNames = remember(BaresipService.contactsMode) {
|
||||
@ -423,7 +423,7 @@ private fun ContactsScreen(navController: NavController) {
|
||||
items = contactNames + contactActionName + import + export + delete,
|
||||
onItemClick = { name ->
|
||||
expanded = false
|
||||
if (name == call || name == dial) {
|
||||
if (name == call || name == showCall) {
|
||||
val newAction = if (BaresipService.contactAction == "call") "dial" else "call"
|
||||
BaresipService.contactAction = newAction
|
||||
Config.replaceVariable("contact_action", newAction)
|
||||
|
||||
@ -295,7 +295,7 @@
|
||||
<!-- Calls Activity -->
|
||||
<string name="call_history">Puheluhistoria</string>
|
||||
<string name="call">Soita</string>
|
||||
<string name="dial">Näytä</string>
|
||||
<string name="show_call">Näytä</string>
|
||||
<string name="calls_calls">puhelut</string>
|
||||
<string name="calls_call">puhelun</string>
|
||||
<string name="direction">Suunta</string>
|
||||
|
||||
@ -291,7 +291,7 @@
|
||||
<string name="call_history">Call History</string>
|
||||
<string name="call_details">Call Details</string>
|
||||
<string name="call">Call</string>
|
||||
<string name="dial">Dial</string>
|
||||
<string name="show_call">Show Call</string>
|
||||
<string name="calls_calls">calls</string>
|
||||
<string name="calls_call">call</string>
|
||||
<string name="peer">Peer</string>
|
||||
|
||||
Reference in New Issue
Block a user