From 5d3203086bb3e636901325c7c6ba31cac8a4de55 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Wed, 21 Oct 2015 09:15:41 +0900 Subject: [PATCH] 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 --- services/core/java/com/android/server/ConnectivityService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 4c0314301f..38600057b3 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -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();