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

Commit 39a878db authored by Bryce Lee's avatar Bryce Lee Committed by Android (Google) Code Review
Browse files

Merge "Properly check to see if a suppressor is present before returning it." into nyc-dev

parents 997743d2 ba3d8952
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2009,7 +2009,7 @@ public class NotificationManagerService extends SystemService {
        @Override
        public ComponentName getEffectsSuppressor() {
            enforceSystemOrSystemUIOrVolume("INotificationManager.getEffectsSuppressor");
            return mEffectsSuppressors.get(0);
            return !mEffectsSuppressors.isEmpty() ? mEffectsSuppressors.get(0) : null;
        }

        @Override