diff --git a/quickstep/libs/sysui_shared.jar b/quickstep/libs/sysui_shared.jar index 5958d02029..6e7534dc6d 100644 Binary files a/quickstep/libs/sysui_shared.jar and b/quickstep/libs/sysui_shared.jar differ diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java index 878af1b92a..c403e274e2 100644 --- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java @@ -403,19 +403,8 @@ public class WindowTransformSwipeHandler { } mRecentsView = activity.getOverviewPanel(); - mRecentsView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { - @Override - public void onViewAttachedToWindow(View v) { - // We can only initialize the SyncRtSurfaceTransactionApplier when the view has been - // attached - mSyncTransactionApplier = new SyncRtSurfaceTransactionApplier(mRecentsView); - mRecentsView.removeOnAttachStateChangeListener(this); - } - - @Override - public void onViewDetachedFromWindow(View v) { - // Do nothing - } + SyncRtSurfaceTransactionApplier.create(mRecentsView, (applier) -> { + mSyncTransactionApplier = applier; }); mQuickScrubController = mRecentsView.getQuickScrubController(); mLayoutListener = mActivityControlHelper.createLayoutListener(mActivity);