Skip to content
Commit 59609424 authored by Kevin Han's avatar Kevin Han
Browse files

Add init/cleanup hooks to notif listeners.

As we refactor more state out of NotificationEntry, we need a place to
initialize/delete this state in its respective manager. Add/remove is
not appropriate for this as some add callbacks will call into other
managers which may have not had a chance to initialize their state yet
since we have no guarantee of ordering.

So instead, we break out a init and cleanup callback from add and
remove respectively where listeners can use it to do any initialization.

Test: atest NotifCollectionTest
Change-Id: If2233f8f4058c91dcf3d6ede61deae656e47c728
parent ffcdce33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment