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

Commit f4905239 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

Fix Quiet Hours not muting notification sounds

4.2.2 touched the NotificationManager service, and some logic went missing in the merge it seems.
This should take care of it.

Change-Id: Ib3b88c83d2936871fbe25f1acbd10fd60c577944

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
parent eb2764cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1995,7 +1995,7 @@ public class NotificationManagerService extends INotificationManager.Stub
                            ContentResolver resolver = mContext.getContentResolver();
                            hasValidSound = Settings.System.getString(resolver,
                                   Settings.System.NOTIFICATION_SOUND) != null;
                        } else if (notification.sound != null) {
                        } else if (!(inQuietHours && mQuietHoursMute) && notification.sound != null) {
                            soundUri = notification.sound;
                            hasValidSound = (soundUri != null);
                        }