Removing insets controller animation as part of all-apps opening

Adding support for easier extension of StateHandlers

Bug: 180143210
Test: Verified on device
Change-Id: If6a088d1482c9b268b21786c4694f6e0927be0c3
This commit is contained in:
Sunny Goyal
2021-03-08 15:53:13 -08:00
parent ae6b34811b
commit 0724113b3d
10 changed files with 31 additions and 399 deletions

View File

@@ -63,6 +63,7 @@ import com.android.systemui.shared.system.ActivityManagerWrapper;
import com.android.systemui.shared.system.ActivityOptionsCompat;
import com.android.systemui.shared.system.RemoteAnimationTargetCompat;
import java.util.List;
import java.util.stream.Stream;
/**
@@ -244,15 +245,12 @@ public abstract class BaseQuickstepLauncher extends Launcher
}
@Override
protected StateHandler<LauncherState>[] createStateHandlers() {
return new StateHandler[] {
getAllAppsController(),
getWorkspace(),
getDepthController(),
new RecentsViewStateController(this),
new BackButtonAlphaHandler(this),
getTaskbarStateHandler(),
};
protected void collectStateHandlers(List<StateHandler> out) {
super.collectStateHandlers(out);
out.add(getDepthController());
out.add(new RecentsViewStateController(this));
out.add(new BackButtonAlphaHandler(this));
out.add(getTaskbarStateHandler());
}
public DepthController getDepthController() {