From 5178edf9651191bc7227ce2a5fbd16b60defd6f9 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 4 Nov 2018 09:53:31 +0200 Subject: [PATCH] - changed importance of default notification channel to low in order to avoid noise when status notification is updated - small cleanups --- app/build.gradle | 4 ++-- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 4 +--- app/src/main/res/layout/activity_account.xml | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f609bcec..1b1b3eef 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId = 'com.tutpro.baresip' minSdkVersion 21 targetSdkVersion 27 - versionCode = 30 - versionName = '3.2.1' + versionCode = 31 + versionName = '3.2.2' externalNativeBuild { cmake { cFlags '-DHAVE_INTTYPES_H' diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index 5e6f1bce..0b2457da 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -17,8 +17,6 @@ import android.util.Log import android.view.View import android.widget.RemoteViews import java.io.File -import java.io.FileInputStream -import java.io.ObjectInputStream import android.support.v4.content.LocalBroadcastManager import android.os.Build import android.support.v4.app.NotificationCompat.VISIBILITY_PRIVATE @@ -184,7 +182,7 @@ class BaresipService: Service() { private fun createNotificationChannels() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val defaultChannel = NotificationChannel(DEFAULT_CHANNEL_ID, "Default", - NotificationManager.IMPORTANCE_DEFAULT) + NotificationManager.IMPORTANCE_LOW) defaultChannel.description = "Tells that baresip is running" defaultChannel.lockscreenVisibility = Notification.VISIBILITY_PUBLIC nm.createNotificationChannel(defaultChannel) diff --git a/app/src/main/res/layout/activity_account.xml b/app/src/main/res/layout/activity_account.xml index 6aca3cfd..70d9bfd6 100644 --- a/app/src/main/res/layout/activity_account.xml +++ b/app/src/main/res/layout/activity_account.xml @@ -174,7 +174,7 @@ android:layout_height="wrap_content" android:hint="SIP URI" android:textSize="18sp" - android:inputType="textUri" + android:inputType="textEmailAddress" android:layout_width="fill_parent">