Clean-up split pendingremote when merged
Otherwise, following transitions mistakenly use the remote
which can cause it to get into a broken state.
Bug: 228883780
Test: go into split, quickswitch, quickswitch back, drag-divider
to dismiss.
Change-Id: Ic2740cca08e3539247f0703d693b252b7e18406d
This commit is contained in:
@@ -66,7 +66,7 @@ class SplitScreenTransitions {
|
||||
IBinder mPendingRecent = null;
|
||||
|
||||
private IBinder mAnimatingTransition = null;
|
||||
private OneShotRemoteHandler mPendingRemoteHandler = null;
|
||||
OneShotRemoteHandler mPendingRemoteHandler = null;
|
||||
private OneShotRemoteHandler mActiveRemoteHandler = null;
|
||||
|
||||
private final Transitions.TransitionFinishCallback mRemoteFinishCB = this::onFinish;
|
||||
|
||||
@@ -1432,6 +1432,7 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
||||
final SurfaceControl.Transaction t = mTransactionPool.acquire();
|
||||
finishEnterSplitScreen(t);
|
||||
mSplitTransitions.mPendingEnter = null;
|
||||
mSplitTransitions.mPendingRemoteHandler = null;
|
||||
t.apply();
|
||||
mTransactionPool.release(t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user