diff options
| author | 2023-06-21 00:30:59 +0000 | |
|---|---|---|
| committer | 2023-06-21 00:30:59 +0000 | |
| commit | 1044566a538715a33909c20c7d483ec4be8dad2d (patch) | |
| tree | d1e256da10e9540ff8345163612e5b39a361f336 /libs | |
| parent | 70d799a287d20f5a24796cae56f54438b4e1245a (diff) | |
| parent | b2d50afc279e25e02a9cc4712a452a1f1643f641 (diff) | |
Merge "Apply syncPipSurfaceState synchronously" into udc-dev am: cc112e1010 am: b2d50afc27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23700924
Change-Id: Icacf0fff6e73da926eeb379d0c57ceac21f5010b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultMixedHandler.java | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultMixedHandler.java b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultMixedHandler.java index 74871d8e4e89..182c27576df7 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultMixedHandler.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultMixedHandler.java @@ -632,19 +632,15 @@ public class DefaultMixedHandler implements Transitions.TransitionHandler, } }; mixed.mInFlightSubAnimations++; + // Sync pip state. + if (mPipHandler != null) { + mPipHandler.syncPipSurfaceState(info, startTransaction, finishTransaction); + } if (!mKeyguardHandler.startAnimation( mixed.mTransition, info, startTransaction, finishTransaction, finishCB)) { mixed.mInFlightSubAnimations--; return false; } - // Sync pip state. - if (mPipHandler != null) { - // We don't know when to apply `startTransaction` so use a separate transaction here. - // This should be fine because these surface properties are independent. - final SurfaceControl.Transaction t = new SurfaceControl.Transaction(); - mPipHandler.syncPipSurfaceState(info, t, finishTransaction); - t.apply(); - } return true; } @@ -684,19 +680,12 @@ public class DefaultMixedHandler implements Transitions.TransitionHandler, finishCallback.onTransitionFinished(wct, wctCB); }; mixed.mInFlightSubAnimations = 1; - if (!mUnfoldHandler.startAnimation( - mixed.mTransition, info, startTransaction, finishTransaction, finishCB)) { - return false; - } // Sync pip state. if (mPipHandler != null) { - // We don't know when to apply `startTransaction` so use a separate transaction here. - // This should be fine because these surface properties are independent. - final SurfaceControl.Transaction t = new SurfaceControl.Transaction(); - mPipHandler.syncPipSurfaceState(info, t, finishTransaction); - t.apply(); + mPipHandler.syncPipSurfaceState(info, startTransaction, finishTransaction); } - return true; + return mUnfoldHandler.startAnimation( + mixed.mTransition, info, startTransaction, finishTransaction, finishCB); } /** Use to when split use intent to enter, check if this enter transition should be mixed or |