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

Commit 75f30cd3 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixing a memory leak with notifications

Test: observe code
Change-Id: I79ae5b883a743aee96f25fef2756df31cee351d8
Fixes: 79179221
parent 150bafd2
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) {