Loading quickstep/src/com/android/quickstep/LauncherSwipeHandlerV2.java +1 −21 Original line number Diff line number Diff line Loading @@ -115,8 +115,6 @@ public class LauncherSwipeHandlerV2 extends } private HomeAnimationFactory createIconHomeAnimationFactory(View workspaceView) { final ResourceProvider rp = DynamicResource.provider(mActivity); final float transY = dpToPx(rp.getFloat(R.dimen.swipe_up_trans_y_dp)); RectF iconLocation = new RectF(); FloatingIconView floatingIconView = getFloatingIconView(mActivity, workspaceView, true /* hideOriginal */, iconLocation, false /* isOpening */); Loading @@ -127,19 +125,15 @@ public class LauncherSwipeHandlerV2 extends return new FloatingViewHomeAnimationFactory(floatingIconView) { // There is a delay in loading the icon, so we need to keep the window // opaque until it is ready. private boolean mIsFloatingIconReady = false; @Nullable @Override protected View getViewIgnoredInWorkspaceRevealAnimation() { return workspaceView; } @NonNull @Override public RectF getWindowTargetRect() { super.getWindowTargetRect(); return iconLocation; } Loading @@ -151,15 +145,6 @@ public class LauncherSwipeHandlerV2 extends floatingIconView.setFastFinishRunnable(anim::end); } @Override public boolean keepWindowOpaque() { if (mIsFloatingIconReady || floatingIconView.isVisibleToUser()) { mIsFloatingIconReady = true; return false; } return true; } @Override public void update(RectF currentRect, float progress, float radius) { super.update(currentRect, progress, radius); Loading Loading @@ -214,11 +199,6 @@ public class LauncherSwipeHandlerV2 extends floatingWidgetView.setFastFinishRunnable(anim::end); } @Override public boolean keepWindowOpaque() { return false; } @Override public void update(RectF currentRect, float progress, float radius) { super.update(currentRect, progress, radius); Loading quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java +0 −5 Original line number Diff line number Diff line Loading @@ -183,8 +183,6 @@ public abstract class SwipeUpAnimationLogic implements public void setAnimation(RectFSpringAnim anim) { } public boolean keepWindowOpaque() { return false; } public void update(RectF currentRect, float progress, float radius) { } public void onCancel() { } Loading Loading @@ -338,9 +336,6 @@ public abstract class SwipeUpAnimationLogic implements mMatrix.setRectToRect(mCropRectF, mWindowCurrentRect, ScaleToFit.FILL); float cornerRadius = Utilities.mapRange(progress, mStartRadius, mEndRadius); float alpha = mAnimationFactory.getWindowAlpha(progress); if (mAnimationFactory.keepWindowOpaque()) { alpha = 1f; } mLocalTransformParams .setTargetAlpha(alpha) .setCornerRadius(cornerRadius); Loading Loading
quickstep/src/com/android/quickstep/LauncherSwipeHandlerV2.java +1 −21 Original line number Diff line number Diff line Loading @@ -115,8 +115,6 @@ public class LauncherSwipeHandlerV2 extends } private HomeAnimationFactory createIconHomeAnimationFactory(View workspaceView) { final ResourceProvider rp = DynamicResource.provider(mActivity); final float transY = dpToPx(rp.getFloat(R.dimen.swipe_up_trans_y_dp)); RectF iconLocation = new RectF(); FloatingIconView floatingIconView = getFloatingIconView(mActivity, workspaceView, true /* hideOriginal */, iconLocation, false /* isOpening */); Loading @@ -127,19 +125,15 @@ public class LauncherSwipeHandlerV2 extends return new FloatingViewHomeAnimationFactory(floatingIconView) { // There is a delay in loading the icon, so we need to keep the window // opaque until it is ready. private boolean mIsFloatingIconReady = false; @Nullable @Override protected View getViewIgnoredInWorkspaceRevealAnimation() { return workspaceView; } @NonNull @Override public RectF getWindowTargetRect() { super.getWindowTargetRect(); return iconLocation; } Loading @@ -151,15 +145,6 @@ public class LauncherSwipeHandlerV2 extends floatingIconView.setFastFinishRunnable(anim::end); } @Override public boolean keepWindowOpaque() { if (mIsFloatingIconReady || floatingIconView.isVisibleToUser()) { mIsFloatingIconReady = true; return false; } return true; } @Override public void update(RectF currentRect, float progress, float radius) { super.update(currentRect, progress, radius); Loading Loading @@ -214,11 +199,6 @@ public class LauncherSwipeHandlerV2 extends floatingWidgetView.setFastFinishRunnable(anim::end); } @Override public boolean keepWindowOpaque() { return false; } @Override public void update(RectF currentRect, float progress, float radius) { super.update(currentRect, progress, radius); Loading
quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java +0 −5 Original line number Diff line number Diff line Loading @@ -183,8 +183,6 @@ public abstract class SwipeUpAnimationLogic implements public void setAnimation(RectFSpringAnim anim) { } public boolean keepWindowOpaque() { return false; } public void update(RectF currentRect, float progress, float radius) { } public void onCancel() { } Loading Loading @@ -338,9 +336,6 @@ public abstract class SwipeUpAnimationLogic implements mMatrix.setRectToRect(mCropRectF, mWindowCurrentRect, ScaleToFit.FILL); float cornerRadius = Utilities.mapRange(progress, mStartRadius, mEndRadius); float alpha = mAnimationFactory.getWindowAlpha(progress); if (mAnimationFactory.keepWindowOpaque()) { alpha = 1f; } mLocalTransformParams .setTargetAlpha(alpha) .setCornerRadius(cornerRadius); Loading