[EasterEgg][Bugfix] Create PendingIntents with flag FLAG_MUTABLE.

PendingIntent attached to BubbleMetadata should not be immutable.

Bug: 267009669
Test: Manual
Change-Id: I2063c973146f9376e5ea90285f67cbe500e9646d
This commit is contained in:
qinyige1
2023-01-29 15:32:23 +08:00
parent b3238fc8a4
commit 5408d16fb7

View File

@@ -258,7 +258,7 @@ public class Cat extends Drawable {
Notification.BubbleMetadata bubbs = new Notification.BubbleMetadata.Builder()
.setIntent(
PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE))
PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_MUTABLE))
.setIcon(notificationIcon)
.setSuppressNotification(false)
.setDesiredHeight(context.getResources().getDisplayMetrics().heightPixels)