Added notice that SMS messaging is not supprted yet
This commit is contained in:
@@ -293,6 +293,17 @@ private fun Calls(
|
|||||||
onLastClicked = lastAction.value,
|
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()
|
val lazyListState = rememberLazyListState()
|
||||||
LazyColumn(
|
LazyColumn(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
@@ -338,6 +349,12 @@ private fun Calls(
|
|||||||
}
|
}
|
||||||
lastButtonText.value = ctx.getString(R.string.send_message)
|
lastButtonText.value = ctx.getString(R.string.send_message)
|
||||||
lastAction.value = {
|
lastAction.value = {
|
||||||
|
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) {
|
if (ua != null) {
|
||||||
handleIntent(ctx, viewModel, intent, "message")
|
handleIntent(ctx, viewModel, intent, "message")
|
||||||
navController.navigateUp()
|
navController.navigateUp()
|
||||||
|
|||||||
@@ -407,6 +407,17 @@ private fun ContactsContent(
|
|||||||
onLastClicked = lastAction.value,
|
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()
|
val lazyListState = rememberLazyListState()
|
||||||
|
|
||||||
LaunchedEffect(searchQuery) {
|
LaunchedEffect(searchQuery) {
|
||||||
@@ -518,10 +529,17 @@ private fun ContactsContent(
|
|||||||
lastText.value = ctx.getString(R.string.send_message)
|
lastText.value = ctx.getString(R.string.send_message)
|
||||||
lastAction.value = {
|
lastAction.value = {
|
||||||
if (ua != null) {
|
if (ua != null) {
|
||||||
|
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")
|
handleIntent(ctx, viewModel, intent, "message")
|
||||||
navController.navigateUp()
|
navController.navigateUp()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
showDialog.value = true
|
showDialog.value = true
|
||||||
},
|
},
|
||||||
onLongClick = {
|
onLongClick = {
|
||||||
|
|||||||
@@ -294,6 +294,7 @@
|
|||||||
%2$s puheluhistoriasta\?
|
%2$s puheluhistoriasta\?
|
||||||
</string>
|
</string>
|
||||||
<string name="calls_delete_question">Haluatko poistaa \'%1$s\' %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="disable_history">Poista käytöstä</string>
|
||||||
<string name="enable_history">Ota käyttöön</string>
|
<string name="enable_history">Ota käyttöön</string>
|
||||||
<string name="delete_history_alert">Haluatko tyhjentää tilin \'%1$s\' puheluhistorian\?</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
|
<string name="calls_add_delete_question">Do you want to add \'%1$s\' to contacts or delete
|
||||||
%2$s from call history\?</string>
|
%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="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="disable_history">Disable</string>
|
||||||
<string name="enable_history">Enable</string>
|
<string name="enable_history">Enable</string>
|
||||||
<string name="delete_history_alert">Do you want to delete call history of account \'%1$s\'\?</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