From bbb7eb26ee396f75bd5d3fbf4961223c061a7363 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Thu, 3 Feb 2022 11:57:31 +0200 Subject: [PATCH] Added/removed strings Modified chat message input type --- app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt | 4 ++-- app/src/main/res/layout/activity_chat.xml | 2 +- app/src/main/res/values/strings.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt index cc36a353..80b41a01 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt @@ -1681,11 +1681,11 @@ class MainActivity : AppCompatActivity() { val telAccounts = Account.telProviderAccounts() if (telAccounts.isEmpty()) { Utils.alertView(this, getString(R.string.notice), - String.format(getString(R.string.no_telephony_providers))) + getString(R.string.no_telephony_providers)) } else { val builder = AlertDialog.Builder(this) with(builder) { - setTitle("Choose a Telephony Provider account") + setTitle(getString(R.string.choose_telephony_provider_account)) setItems(telAccounts) { _, which -> spinToAor("sip:${telAccounts[which]}") makeCall() diff --git a/app/src/main/res/layout/activity_chat.xml b/app/src/main/res/layout/activity_chat.xml index 37153f61..adb92567 100644 --- a/app/src/main/res/layout/activity_chat.xml +++ b/app/src/main/res/layout/activity_chat.xml @@ -36,7 +36,7 @@ android:layout_alignParentBottom="true" android:layout_toStartOf="@id/sendButton" android:textSize="18sp" - android:inputType="textMultiLine|textShortMessage|textCapSentences" + android:inputType="textMultiLine|textShortMessage|textCapSentences|textAutoComplete|textAutoCorrect" android:scrollHorizontally="false" android:autofillHints="text" android:hint="@string/new_message" > diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f9866457..b9868c48 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -362,7 +362,7 @@ Send Message Do you want to delete contact \'%1$s\'? Your maximum number of contacts %1$d has been exceeded. - Telephony provider has not been configured for any account. + Telephony Provider has not been configured for any account. Alert Info @@ -397,7 +397,7 @@ Call from … Transferring call to … Invalid SIP URI \'%1$s\' - Telephony provider has not been configured for this acccount. + Choose Telephony Provider account. Callee Hangup Video call