From 53a35af339cd7bf2f0449dca50ea04481d82c11a Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Wed, 22 May 2019 16:29:21 +0300 Subject: [PATCH] - Fixed adding of new account. --- app/build.gradle | 4 ++-- app/src/main/kotlin/com/tutpro/baresip/AccountsActivity.kt | 4 ++-- fastlane/metadata/android/en-US/changelogs/8.0.2.txt | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/8.0.2.txt diff --git a/app/build.gradle b/app/build.gradle index f09fc41a..97d23621 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId = 'com.tutpro.baresip' minSdkVersion 21 targetSdkVersion 28 - versionCode = 63 - versionName = '8.0.1' + versionCode = 64 + versionName = '8.0.2' externalNativeBuild { cmake { cFlags '-DHAVE_INTTYPES_H' diff --git a/app/src/main/kotlin/com/tutpro/baresip/AccountsActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/AccountsActivity.kt index 3f33b5bc..d61fa20f 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/AccountsActivity.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/AccountsActivity.kt @@ -35,7 +35,7 @@ class AccountsActivity : AppCompatActivity() { val addAccountButton = findViewById(R.id.addAccount) as ImageButton val newAorView = findViewById(R.id.newAor) as EditText addAccountButton.setOnClickListener{ - var aor = newAorView.text.toString().trim() + val aor = newAorView.text.toString().trim() if (!Utils.checkAor(aor)) { Log.d("Baresip", "Invalid Address of Record $aor") Utils.alertView(this, getString(R.string.error), @@ -45,7 +45,7 @@ class AccountsActivity : AppCompatActivity() { Utils.alertView(this, getString(R.string.notice), String.format(getString(R.string.account_exists), aor)) } else { - val ua = UserAgent.uaAlloc("<$aor>;stunserver=\"stun:stun.l.google.com:19302\";regq=0.5;pubint=0;regint=0") + val ua = UserAgent.uaAlloc(";stunserver=\"stun:stun.l.google.com:19302\";regq=0.5;pubint=0;regint=0") if (ua == null) { Log.e("Baresip", "Failed to allocate UA for $aor") Utils.alertView(this, getString(R.string.notice), diff --git a/fastlane/metadata/android/en-US/changelogs/8.0.2.txt b/fastlane/metadata/android/en-US/changelogs/8.0.2.txt new file mode 100644 index 00000000..eb1182d7 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/8.0.2.txt @@ -0,0 +1 @@ +- Fixed adding of new account.