Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46d50b70 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Don't buzz when automatically connecting to captive portals

Play a sound and vibrate (by setting DEFAULT_ALL) only if the
user manually selected the network. This applies to both captive
portals and networks with no Internet access.

Bug: 24126143
Change-Id: Idf075d5c85f9f4b07a3431a25d1a3f7089cf1ee2
parent d8ef44bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3363,7 +3363,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
                    .setPriority(highPriority ?
                            Notification.PRIORITY_HIGH :
                            Notification.PRIORITY_DEFAULT)
                    .setDefaults(Notification.DEFAULT_ALL)
                    .setDefaults(highPriority ? Notification.DEFAULT_ALL : 0)
                    .setOnlyAlertOnce(true)
                    .build();