summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-08-29 17:43:51 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-08-29 17:43:51 +0000
commit6f8e1d3bba3e56943aff016ec65e176ec34f5c2b (patch)
treee6c1452edd8ae0670d1d7868e7d7af7ae9209560
parentc7989a38fa9bf8a6740aa6a02a1274f516fafb06 (diff)
parent34e363b64943d5a68056e92fe480fba8463bc1bb (diff)
Merge "Disable vibration and sound for BackgroundUserSoundNotification" into main
-rw-r--r--services/core/java/com/android/server/pm/BackgroundUserSoundNotifier.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/pm/BackgroundUserSoundNotifier.java b/services/core/java/com/android/server/pm/BackgroundUserSoundNotifier.java
index e3061a7c39ae..41351613331d 100644
--- a/services/core/java/com/android/server/pm/BackgroundUserSoundNotifier.java
+++ b/services/core/java/com/android/server/pm/BackgroundUserSoundNotifier.java
@@ -69,6 +69,7 @@ public class BackgroundUserSoundNotifier {
mUserManager = mSystemUserContext.getSystemService(UserManager.class);
NotificationChannel channel = new NotificationChannel(BUSN_CHANNEL_ID, BUSN_CHANNEL_NAME,
NotificationManager.IMPORTANCE_HIGH);
+ channel.setSound(null, null);
mNotificationManager.createNotificationChannel(channel);
setupFocusControlAudioPolicy();
}