Loading core/java/android/app/Notification.java +9 −5 Original line number Diff line number Diff line Loading @@ -2576,19 +2576,23 @@ public class Notification implements Parcelable PendingIntent.setOnMarshaledListener( (PendingIntent intent, Parcel out, int outFlags) -> { if (parcel == out) { synchronized (this) { if (allPendingIntents == null) { allPendingIntents = new ArraySet<>(); } allPendingIntents.add(intent); } } }); } try { // IMPORTANT: Add marshaling code in writeToParcelImpl as we // want to intercept all pending events written to the parcel. writeToParcelImpl(parcel, flags); synchronized (this) { // Must be written last! parcel.writeArraySet(allPendingIntents); } } finally { if (collectPendingIntents) { PendingIntent.setOnMarshaledListener(null); Loading Loading
core/java/android/app/Notification.java +9 −5 Original line number Diff line number Diff line Loading @@ -2576,19 +2576,23 @@ public class Notification implements Parcelable PendingIntent.setOnMarshaledListener( (PendingIntent intent, Parcel out, int outFlags) -> { if (parcel == out) { synchronized (this) { if (allPendingIntents == null) { allPendingIntents = new ArraySet<>(); } allPendingIntents.add(intent); } } }); } try { // IMPORTANT: Add marshaling code in writeToParcelImpl as we // want to intercept all pending events written to the parcel. writeToParcelImpl(parcel, flags); synchronized (this) { // Must be written last! parcel.writeArraySet(allPendingIntents); } } finally { if (collectPendingIntents) { PendingIntent.setOnMarshaledListener(null); Loading