Skip to content
Commit 1dde493f authored by Chris Göllner's avatar Chris Göllner
Browse files

PSS: Fix MediaProjectionTaskView leaking in KeyguardController

TaskPreviewSizeProvider was registering itself as a configuration
changes listener when created, and never unregistering itself again.
Since a new one is created every time the app chooser is created,
it would create a new leak every time.
The class indirectly references MediaProjectionTaskView, which itself
holds onto large Bitmaps, which can make the leak costly.

Bug: 290754514
Test: Manually - Took heap dump before and after the fix
Test: TaskPreviewSizeProviderTest
Change-Id: Id03d9b3b5a94193f0e5d75a6ff602dd74b45f40c
parent fe395a0e
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