mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
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:
Binary file not shown.
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user