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

Skip to content
Commit 7aaa9bca authored by Jernej Virag's avatar Jernej Virag
Browse files

Release references to KeyguardRemotePreview after onDestroy

The process on the other side of the IPC can keep PreviewLifecycleObserver for any time - until the GC triggers or even longer if there's an accidental leak. This can clocks and other heavy objects on our side.
PreviewLifecycleObserver is moved outside the KeyguardRemotePreviewManager to prevent accidental capturing of the manager class via this references.

Flag: NONE
Bug: 315637349
Test: newly added unit test and verified with Studio profiler
Change-Id: If8515407aa75a754d94cff92965d9ee6b713001c
parent 9d708f7e
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