Merge "Stash desktop apps on home gesture or taskbar home button press" into udc-qpr-dev
This commit is contained in:
@@ -259,6 +259,9 @@ public class QuickstepLauncher extends Launcher {
|
||||
mTISBindHelper = new TISBindHelper(this, this::onTISConnected);
|
||||
mDepthController = new DepthController(this);
|
||||
mDesktopVisibilityController = new DesktopVisibilityController(this);
|
||||
if (DesktopTaskView.DESKTOP_MODE_SUPPORTED) {
|
||||
mDesktopVisibilityController.registerSystemUiListener();
|
||||
}
|
||||
mHotseatPredictionController = new HotseatPredictionController(this);
|
||||
|
||||
mEnableWidgetDepth = SystemProperties.getBoolean("ro.launcher.depth.widget", true);
|
||||
@@ -483,6 +486,10 @@ public class QuickstepLauncher extends Launcher {
|
||||
mLauncherUnfoldAnimationController.onDestroy();
|
||||
}
|
||||
|
||||
if (mDesktopVisibilityController != null) {
|
||||
mDesktopVisibilityController.unregisterSystemUiListener();
|
||||
}
|
||||
|
||||
super.onDestroy();
|
||||
mHotseatPredictionController.destroy();
|
||||
mSplitWithKeyboardShortcutController.onDestroy();
|
||||
|
||||
Reference in New Issue
Block a user