Updating SurfaceTransactionApplier to handle view not being attached
Bug: 278833389 Test: Presubmit Flag: N/A Change-Id: I88c240a1a7bdfe2e68c858c30e91cc5d06bc7bcf
This commit is contained in:
@@ -2114,12 +2114,11 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
}
|
||||
|
||||
protected void linkRecentsViewScroll() {
|
||||
SurfaceTransactionApplier.create(mRecentsView, applier -> {
|
||||
runActionOnRemoteHandles(remoteTargetHandle -> remoteTargetHandle.getTransformParams()
|
||||
.setSyncTransactionApplier(applier));
|
||||
runOnRecentsAnimationAndLauncherBound(() ->
|
||||
mRecentsAnimationTargets.addReleaseCheck(applier));
|
||||
});
|
||||
SurfaceTransactionApplier applier = new SurfaceTransactionApplier(mRecentsView);
|
||||
runActionOnRemoteHandles(remoteTargetHandle -> remoteTargetHandle.getTransformParams()
|
||||
.setSyncTransactionApplier(applier));
|
||||
runOnRecentsAnimationAndLauncherBound(() ->
|
||||
mRecentsAnimationTargets.addReleaseCheck(applier));
|
||||
|
||||
mRecentsView.addOnScrollChangedListener(mOnRecentsScrollListener);
|
||||
runOnRecentsAnimationAndLauncherBound(() ->
|
||||
|
||||
Reference in New Issue
Block a user