Fix issue with sync rt applier

- Use the shared lib call to ensure that we always have the sync rt
  applier with viewroot.

Change-Id: I911362d105a2c0223693640a28d358caf6dd29d0
This commit is contained in:
Winson Chung
2018-12-11 13:02:00 -08:00
parent 345273b6a5
commit 381a75c194
2 changed files with 2 additions and 13 deletions

Binary file not shown.

View File

@@ -403,19 +403,8 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
}
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);