Merge "Set the listeners to null on unregister" into main

This commit is contained in:
Orhan Uysal
2024-05-17 08:33:03 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ public class DesktopVisibilityController {
*/
public void unregisterSystemUiListener() {
SystemUiProxy.INSTANCE.get(mLauncher).setDesktopTaskListener(null);
mDesktopTaskListener = null;
}
/**

View File

@@ -983,6 +983,7 @@ public class SplitSelectStateController {
void onDestroy() {
SystemUiProxy.INSTANCE.get(mLauncher).unregisterSplitSelectListener(
mSplitSelectListener);
mSplitSelectListener = null;
}
/**