Fixing surface blur when using multiple surfaces

Separating the depth controller logic into a base
class so that different controllers can be used
for different surfaces

Bug: 236780815
Test: Verified locally
Change-Id: I2bd7ed50438453d6e41c73c8001a0d6a73091653
This commit is contained in:
Sunny Goyal
2022-07-08 13:14:50 -07:00
parent 3e64f94387
commit ced159075c
4 changed files with 223 additions and 255 deletions
@@ -110,7 +110,7 @@ import java.util.stream.Stream;
*/
public abstract class BaseQuickstepLauncher extends Launcher {
private DepthController mDepthController = new DepthController(this);
private DepthController mDepthController;
private QuickstepTransitionManager mAppTransitionManager;
/**
@@ -247,7 +247,6 @@ public abstract class BaseQuickstepLauncher extends Launcher {
@Override
public void onScrollChanged(float progress) {
super.onScrollChanged(progress);
mDepthController.onOverlayScrollChanged(progress);
onTaskbarInAppDisplayProgressUpdate(progress, MINUS_ONE_PAGE_PROGRESS_INDEX);
}
@@ -345,6 +344,7 @@ public abstract class BaseQuickstepLauncher extends Launcher {
mAppTransitionManager.registerRemoteTransitions();
mTISBindHelper = new TISBindHelper(this, this::onTISConnected);
mDepthController = new DepthController(this);
}
private void onTISConnected(TISBinder binder) {