- changed importance of default notification channel to low in order to

avoid noise when status notification is updated
- small cleanups
This commit is contained in:
Juha Heinanen
2018-11-04 09:53:31 +02:00
parent 0d9591b801
commit 5178edf965
3 changed files with 4 additions and 6 deletions

View File

@ -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)

View File

@ -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">
</EditText>