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

Commit 224077ee authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

Merge "Fixing a memory leak with notifications" into pi-dev

am: 11969b49

Change-Id: I5a607ab462ddd825b355823e2825ac6c50f6e26c
parents 2629cb09 11969b49
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -227,7 +227,9 @@ public class NotificationTemplateViewWrapper extends NotificationHeaderViewWrapp
            if (mUiOffloadThread == null) {
                mUiOffloadThread = Dependency.get(UiOffloadThread.class);
            }
            if (view.isAttachedToWindow()) {
                mUiOffloadThread.submit(() -> pendingIntent.registerCancelListener(listener));
            }
            view.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() {
                @Override
                public void onViewAttachedToWindow(View v) {