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

Commit b020b5e5 authored by Will Brockman's avatar Will Brockman
Browse files

In NotificationRecord, clean out adjustments once they've been applied.

This frees up some memory and prevents unnecessary re-processing of
the adjustments.  It also deduplicates the NOTIFICATION_ASSISTANT tron
log record that is written every time a new notification is
created. It also prevents any other duplication of event logs.

Bug: 122823423
Test: atest SystemUITests NotificationAssistantServiceTest  and manual testing.
Change-Id: Ie2514e8e9ac19f79b1ad0afcde4d96649fe28069
parent 07182c86
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -690,6 +690,8 @@ public final class NotificationRecord {
                                    importance));
                }
            }
            // We have now gotten all the information out of the adjustments and can forget them.
            mAdjustments.clear();
        }
    }