From c6bb913ba248051e0b9fdd3ead5f37ed4bc4f8ec Mon Sep 17 00:00:00 2001 From: Mygod Date: Tue, 14 Nov 2017 23:50:06 -0800 Subject: [PATCH] Lift default notification priority for VPN service Priority has been lifted from IMPORTANCE_MIN to IMPORTANCE_LOW. This change only impacts Android 8.0 and higher. Fixes #1431. Also fixes https://github.com/shadowsocks/shadowsocks-android/issues/1037#issuecomment-338367917. --- .../scala/com/github/shadowsocks/ShadowsocksApplication.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala b/mobile/src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala index 1a55cf78..66dd9fa7 100644 --- a/mobile/src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala +++ b/mobile/src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala @@ -168,7 +168,7 @@ class ShadowsocksApplication extends Application { if (Build.VERSION.SDK_INT >= 26) { val nm = getSystemService(classOf[NotificationManager]) nm.createNotificationChannels(List( - new NotificationChannel("service-vpn", getText(R.string.service_vpn), NotificationManager.IMPORTANCE_MIN), + new NotificationChannel("service-vpn", getText(R.string.service_vpn), NotificationManager.IMPORTANCE_LOW), new NotificationChannel("service-proxy", getText(R.string.service_proxy), NotificationManager.IMPORTANCE_LOW), new NotificationChannel("service-transproxy", getText(R.string.service_transproxy), NotificationManager.IMPORTANCE_LOW)