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

Commit 6a83c736 authored by Yi-Ling Chuang's avatar Yi-Ling Chuang
Browse files

Fix the non-working DND toggle

The pendingIntent of the DND toggle was set to immutable previously
which doesn't allow any modification. This CL fixes this by making it
mutable.

Fixes: 191865710
Test: Search "dnd" and make sure the toggle has effect upon modification
Change-Id: Iade256cee8885cb80ade5ca95cc50065c2a78da2
parent 1060b2f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,6 +150,6 @@ public class ZenModeSliceBuilder {
        final Intent intent = new Intent(ACTION_ZEN_MODE_SLICE_CHANGED)
                .setClass(context, SliceBroadcastReceiver.class);
        return PendingIntent.getBroadcast(context, 0 /* requestCode */, intent,
                PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE);
                PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE);
    }
}