From 09220ee3359eb5c807b8f5fb95a7b8ac5134ed8c Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 13 Jul 2016 00:45:19 +0800 Subject: [PATCH] Reduce notification priority --- .../scala/com/github/shadowsocks/ShadowsocksNotification.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/github/shadowsocks/ShadowsocksNotification.scala b/src/main/scala/com/github/shadowsocks/ShadowsocksNotification.scala index 8df9e328..245d3bfb 100644 --- a/src/main/scala/com/github/shadowsocks/ShadowsocksNotification.scala +++ b/src/main/scala/com/github/shadowsocks/ShadowsocksNotification.scala @@ -79,7 +79,7 @@ class ShadowsocksNotification(private val service: BaseService, profileName: Str def setVisible(visible: Boolean, forceShow: Boolean = false) = if (isVisible != visible) { isVisible = visible - builder.setPriority(if (visible) NotificationCompat.PRIORITY_DEFAULT else NotificationCompat.PRIORITY_MIN) + builder.setPriority(if (visible) NotificationCompat.PRIORITY_LOW else NotificationCompat.PRIORITY_MIN) show() } else if (forceShow) show()