Added notice that SMS messaging is not supprted yet
This commit is contained in:
@ -293,6 +293,17 @@ private fun Calls(
|
||||
onLastClicked = lastAction.value,
|
||||
)
|
||||
|
||||
val alertTitle = remember { mutableStateOf("") }
|
||||
val alertMessage = remember { mutableStateOf("") }
|
||||
val showAlert = remember { mutableStateOf(false) }
|
||||
|
||||
AlertDialog(
|
||||
showDialog = showAlert,
|
||||
title = alertTitle.value,
|
||||
message = alertMessage.value,
|
||||
lastButtonText = stringResource(R.string.ok),
|
||||
)
|
||||
|
||||
val lazyListState = rememberLazyListState()
|
||||
LazyColumn(
|
||||
modifier = Modifier
|
||||
@ -338,10 +349,16 @@ private fun Calls(
|
||||
}
|
||||
lastButtonText.value = ctx.getString(R.string.send_message)
|
||||
lastAction.value = {
|
||||
if (ua != null) {
|
||||
handleIntent(ctx, viewModel, intent, "message")
|
||||
navController.navigateUp()
|
||||
if (account.isMobile) {
|
||||
alertTitle.value = ctx.getString(R.string.notice)
|
||||
alertMessage.value = ctx.getString(R.string.no_sms_messaging)
|
||||
showAlert.value = true
|
||||
}
|
||||
else
|
||||
if (ua != null) {
|
||||
handleIntent(ctx, viewModel, intent, "message")
|
||||
navController.navigateUp()
|
||||
}
|
||||
}
|
||||
showDialog.value = true
|
||||
},
|
||||
|
||||
@ -407,6 +407,17 @@ private fun ContactsContent(
|
||||
onLastClicked = lastAction.value,
|
||||
)
|
||||
|
||||
val alertTitle = remember { mutableStateOf("") }
|
||||
val alertMessage = remember { mutableStateOf("") }
|
||||
val showAlert = remember { mutableStateOf(false) }
|
||||
|
||||
AlertDialog(
|
||||
showDialog = showAlert,
|
||||
title = alertTitle.value,
|
||||
message = alertMessage.value,
|
||||
lastButtonText = stringResource(R.string.ok),
|
||||
)
|
||||
|
||||
val lazyListState = rememberLazyListState()
|
||||
|
||||
LaunchedEffect(searchQuery) {
|
||||
@ -518,8 +529,15 @@ private fun ContactsContent(
|
||||
lastText.value = ctx.getString(R.string.send_message)
|
||||
lastAction.value = {
|
||||
if (ua != null) {
|
||||
handleIntent(ctx, viewModel, intent, "message")
|
||||
navController.navigateUp()
|
||||
if (ua.account.isMobile) {
|
||||
alertTitle.value = ctx.getString(R.string.notice)
|
||||
alertMessage.value = ctx.getString(R.string.no_sms_messaging)
|
||||
showAlert.value = true
|
||||
}
|
||||
else {
|
||||
handleIntent(ctx, viewModel, intent, "message")
|
||||
navController.navigateUp()
|
||||
}
|
||||
}
|
||||
}
|
||||
showDialog.value = true
|
||||
|
||||
@ -294,6 +294,7 @@
|
||||
%2$s puheluhistoriasta\?
|
||||
</string>
|
||||
<string name="calls_delete_question">Haluatko poistaa \'%1$s\' %2$s puheluhistoriasta\?</string>
|
||||
<string name="no_sms_messaging">SMS-tekstiviestitystä ei ole vielä toteutettu.</string>
|
||||
<string name="disable_history">Poista käytöstä</string>
|
||||
<string name="enable_history">Ota käyttöön</string>
|
||||
<string name="delete_history_alert">Haluatko tyhjentää tilin \'%1$s\' puheluhistorian\?</string>
|
||||
|
||||
@ -280,6 +280,7 @@
|
||||
<string name="calls_add_delete_question">Do you want to add \'%1$s\' to contacts or delete
|
||||
%2$s from call history\?</string>
|
||||
<string name="calls_delete_question">Do you want to delete \'%1$s\' %2$s from call history\?</string>
|
||||
<string name="no_sms_messaging">Sorry, no SMS messaging yet.</string>
|
||||
<string name="disable_history">Disable</string>
|
||||
<string name="enable_history">Enable</string>
|
||||
<string name="delete_history_alert">Do you want to delete call history of account \'%1$s\'\?</string>
|
||||
|
||||
Reference in New Issue
Block a user