mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Fix launcher activity leak in TouchInteractionService
TouchInteractionService cannot be garbage collected until it has been cleared from the sysui process. Switching to use a WeakReference to help with garbage collection. Flag: not needed Bug: 283490010 Test: ran launcher and performed gestures Change-Id: I37aa5f858f2ae0ac78b46478ab4c5f24770bd64f
This commit is contained in:
@@ -878,7 +878,9 @@ public class QuickstepLauncher extends Launcher {
|
||||
|
||||
private void onTISConnected(TISBinder binder) {
|
||||
mTaskbarManager = binder.getTaskbarManager();
|
||||
mTaskbarManager.setActivity(this);
|
||||
if (mTaskbarManager != null) {
|
||||
mTaskbarManager.setActivity(this);
|
||||
}
|
||||
mOverviewCommandHelper = binder.getOverviewCommandHelper();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user