diff options
| author | 2024-08-28 14:24:07 +0000 | |
|---|---|---|
| committer | 2024-08-29 10:08:37 +0000 | |
| commit | 34e363b64943d5a68056e92fe480fba8463bc1bb (patch) | |
| tree | e4e7896d5a5af6ffedd12aef22d58c45f24e5172 | |
| parent | 88f1c7e682fe8c15d3c003faf2433ad2a764b7e8 (diff) | |
Disable vibration and sound for BackgroundUserSoundNotification
Bug: 362716403
Test: manual - set timer on user A, switch to user B, wait for the notification to show up when timer goes off and ensure there is no notification sound
Flag: EXEMPT bugfix
Change-Id: Id3d2e37b9adba14cc98b27dedb532c561e56cc35
| -rw-r--r-- | services/core/java/com/android/server/pm/BackgroundUserSoundNotifier.java | 1 |
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(); } |