From 56afbd54003b730aa09e6f189fe0276a566459cf Mon Sep 17 00:00:00 2001
From: cyBerta <cyberta@riseup.net>
Date: Wed, 22 May 2019 21:12:17 +0200
Subject: [PATCH] try to work around Android O notification sound bug

---
 .../main/java/se/leap/bitmaskclient/VpnNotificationManager.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java b/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java
index 566b34536..9107568ce 100644
--- a/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java
+++ b/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java
@@ -176,6 +176,7 @@ public class VpnNotificationManager {
         mChannel.enableLights(true);
 
         mChannel.setLightColor(Color.BLUE);
+        mChannel.setSound(null, null);
         notificationManager.createNotificationChannel(mChannel);
     }
 
@@ -206,6 +207,7 @@ public class VpnNotificationManager {
         mChannel.enableLights(true);
 
         mChannel.setLightColor(Color.BLUE);
+        mChannel.setSound(null, null);
         notificationManager.createNotificationChannel(mChannel);
     }
 
-- 
GitLab