Loading quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +37 −18 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ import android.util.Size; import android.view.SurfaceControl; import android.view.View; import android.view.ViewRootImpl; import android.view.ViewTreeObserver; import android.view.animation.Interpolator; import android.view.animation.PathInterpolator; Loading Loading @@ -367,7 +368,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener public void onAnimationStart(Animator animation) { mLauncher.addOnResumeCallback(() -> ObjectAnimator.ofFloat(mLauncher.getDepthController(), DEPTH, mLauncher.getStateManager().getState().getDepth(mLauncher)).start()); mLauncher.getStateManager().getState().getDepth( mLauncher)).start()); } }); } Loading Loading @@ -1216,7 +1218,24 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener anim.addListener(new AnimationSuccessListener() { @Override public void onAnimationStart(Animator animation) { mDragLayer.getViewTreeObserver().addOnDrawListener( new ViewTreeObserver.OnDrawListener() { boolean mHandled = false; @Override public void onDraw() { if (mHandled) { return; } mHandled = true; InteractionJankMonitorWrapper.begin(mDragLayer, cuj); mDragLayer.post(() -> mDragLayer.getViewTreeObserver().removeOnDrawListener( this)); } }); super.onAnimationStart(animation); } Loading Loading
quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +37 −18 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ import android.util.Size; import android.view.SurfaceControl; import android.view.View; import android.view.ViewRootImpl; import android.view.ViewTreeObserver; import android.view.animation.Interpolator; import android.view.animation.PathInterpolator; Loading Loading @@ -367,7 +368,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener public void onAnimationStart(Animator animation) { mLauncher.addOnResumeCallback(() -> ObjectAnimator.ofFloat(mLauncher.getDepthController(), DEPTH, mLauncher.getStateManager().getState().getDepth(mLauncher)).start()); mLauncher.getStateManager().getState().getDepth( mLauncher)).start()); } }); } Loading Loading @@ -1216,7 +1218,24 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener anim.addListener(new AnimationSuccessListener() { @Override public void onAnimationStart(Animator animation) { mDragLayer.getViewTreeObserver().addOnDrawListener( new ViewTreeObserver.OnDrawListener() { boolean mHandled = false; @Override public void onDraw() { if (mHandled) { return; } mHandled = true; InteractionJankMonitorWrapper.begin(mDragLayer, cuj); mDragLayer.post(() -> mDragLayer.getViewTreeObserver().removeOnDrawListener( this)); } }); super.onAnimationStart(animation); } Loading