do not hide notification text

This commit is contained in:
Juha Heinanen
2018-05-10 21:49:08 +03:00
parent ea108816c9
commit 7d46cb40ad

View File

@ -2,6 +2,7 @@ package com.tutpro.baresip
import android.Manifest import android.Manifest
import android.app.Notification import android.app.Notification
import android.app.Notification.VISIBILITY_PUBLIC
import android.app.NotificationManager import android.app.NotificationManager
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@ -563,6 +564,7 @@ class MainActivity : AppCompatActivity() {
val notification = Notification.Builder(this) val notification = Notification.Builder(this)
.setSmallIcon(R.drawable.ic_stat) .setSmallIcon(R.drawable.ic_stat)
.setContentTitle("Baresip is running") .setContentTitle("Baresip is running")
.setVisibility(VISIBILITY_PUBLIC)
.setOngoing(true).build() .setOngoing(true).build()
nm.notify(id, notification) nm.notify(id, notification)
} }