added some lines to get foreground notification (a little) less intrusive
This commit is contained in:
@@ -168,6 +168,9 @@ public class WebSocketService extends Service {
|
||||
new NotificationCompat.Builder(this, NotificationSupport.Channel.FOREGROUND)
|
||||
.setSmallIcon(R.drawable.ic_gotify)
|
||||
.setOngoing(true)
|
||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||
.setShowWhen(false)
|
||||
.setWhen(0)
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setContentText(message)
|
||||
.setStyle(new NotificationCompat.BigTextStyle().bigText(message))
|
||||
|
||||
Reference in New Issue
Block a user