Loading quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.launcher3.uioverrides.touchcontrollers; import static android.view.MotionEvent.ACTION_DOWN; import static android.view.MotionEvent.ACTION_MOVE; import static com.android.app.animation.Interpolators.ACCELERATE_0_75; import static com.android.app.animation.Interpolators.DECELERATE_3; Loading Loading @@ -261,7 +262,7 @@ public class NoButtonQuickSwitchTouchController implements TouchController, xAnim.setFloat(mRecentsView, ADJACENT_PAGE_HORIZONTAL_OFFSET, scaleAndOffset[1], LINEAR); // Use QuickSwitchState instead of OverviewState to determine scrim color, // since we need to take potential taskbar into account. xAnim.setScrimViewBackgroundColor(mLauncher.getScrimView(), xAnim.setViewBackgroundColor(mLauncher.getScrimView(), QUICK_SWITCH_FROM_HOME.getWorkspaceScrimColor(mLauncher), LINEAR); if (mRecentsView.getTaskViewCount() == 0) { xAnim.addFloat(mRecentsView, CONTENT_ALPHA, 0f, 1f, LINEAR); Loading quickstep/src/com/android/quickstep/fallback/FallbackRecentsStateController.java +1 −1 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ public class FallbackRecentsStateController implements StateHandler<RecentsState setter.setFloat(mRecentsView, TASK_THUMBNAIL_SPLASH_ALPHA, state.showTaskThumbnailSplash() ? 1f : 0f, INSTANT); setter.setScrimViewBackgroundColor(mActivity.getScrimView(), state.getScrimColor(mActivity), setter.setViewBackgroundColor(mActivity.getScrimView(), state.getScrimColor(mActivity), config.getInterpolator(ANIM_SCRIM_FADE, LINEAR)); RecentsState currentState = mActivity.getStateManager().getState(); Loading src/com/android/launcher3/LauncherAnimUtils.java +0 −5 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ import android.widget.ImageView; import android.widget.TextView; import com.android.launcher3.util.MultiScalePropertyFactory; import com.android.launcher3.views.ScrimView; public class LauncherAnimUtils { /** Loading Loading @@ -195,10 +194,6 @@ public class LauncherAnimUtils { @Override public Integer get(View view) { if (view instanceof ScrimView) { return ((ScrimView) view).getBackgroundColor(); } if (!(view.getBackground() instanceof ColorDrawable)) { return Color.TRANSPARENT; } Loading src/com/android/launcher3/WorkspaceStateTransitionAnimation.java +1 −1 Original line number Diff line number Diff line Loading @@ -199,7 +199,7 @@ public class WorkspaceStateTransitionAnimation { propertySetter.setFloat(sysUiScrim.getSysUIProgress(), AnimatedFloat.VALUE, state.hasFlag(FLAG_HAS_SYS_UI_SCRIM) ? 1 : 0, LINEAR); propertySetter.setScrimViewBackgroundColor(mLauncher.getScrimView(), propertySetter.setViewBackgroundColor(mLauncher.getScrimView(), state.getWorkspaceScrimColor(mLauncher), config.getInterpolator(ANIM_SCRIM_FADE, ACCELERATE_2)); } Loading src/com/android/launcher3/anim/AnimatedPropertySetter.java +4 −5 Original line number Diff line number Diff line Loading @@ -24,14 +24,13 @@ import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.TimeInterpolator; import android.animation.ValueAnimator; import android.graphics.drawable.ColorDrawable; import android.util.FloatProperty; import android.util.IntProperty; import android.view.View; import androidx.annotation.NonNull; import com.android.launcher3.views.ScrimView; import java.util.function.Consumer; /** Loading Loading @@ -63,9 +62,9 @@ public class AnimatedPropertySetter extends PropertySetter { } @Override public Animator setScrimViewBackgroundColor(ScrimView view, int color, TimeInterpolator interpolator) { if (view == null || view.getBackgroundColor() == color) { public Animator setViewBackgroundColor(View view, int color, TimeInterpolator interpolator) { if (view == null || (view.getBackground() instanceof ColorDrawable && ((ColorDrawable) view.getBackground()).getColor() == color)) { return NO_OP; } ObjectAnimator anim = ObjectAnimator.ofArgb(view, VIEW_BACKGROUND_COLOR, color); Loading Loading
quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.launcher3.uioverrides.touchcontrollers; import static android.view.MotionEvent.ACTION_DOWN; import static android.view.MotionEvent.ACTION_MOVE; import static com.android.app.animation.Interpolators.ACCELERATE_0_75; import static com.android.app.animation.Interpolators.DECELERATE_3; Loading Loading @@ -261,7 +262,7 @@ public class NoButtonQuickSwitchTouchController implements TouchController, xAnim.setFloat(mRecentsView, ADJACENT_PAGE_HORIZONTAL_OFFSET, scaleAndOffset[1], LINEAR); // Use QuickSwitchState instead of OverviewState to determine scrim color, // since we need to take potential taskbar into account. xAnim.setScrimViewBackgroundColor(mLauncher.getScrimView(), xAnim.setViewBackgroundColor(mLauncher.getScrimView(), QUICK_SWITCH_FROM_HOME.getWorkspaceScrimColor(mLauncher), LINEAR); if (mRecentsView.getTaskViewCount() == 0) { xAnim.addFloat(mRecentsView, CONTENT_ALPHA, 0f, 1f, LINEAR); Loading
quickstep/src/com/android/quickstep/fallback/FallbackRecentsStateController.java +1 −1 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ public class FallbackRecentsStateController implements StateHandler<RecentsState setter.setFloat(mRecentsView, TASK_THUMBNAIL_SPLASH_ALPHA, state.showTaskThumbnailSplash() ? 1f : 0f, INSTANT); setter.setScrimViewBackgroundColor(mActivity.getScrimView(), state.getScrimColor(mActivity), setter.setViewBackgroundColor(mActivity.getScrimView(), state.getScrimColor(mActivity), config.getInterpolator(ANIM_SCRIM_FADE, LINEAR)); RecentsState currentState = mActivity.getStateManager().getState(); Loading
src/com/android/launcher3/LauncherAnimUtils.java +0 −5 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ import android.widget.ImageView; import android.widget.TextView; import com.android.launcher3.util.MultiScalePropertyFactory; import com.android.launcher3.views.ScrimView; public class LauncherAnimUtils { /** Loading Loading @@ -195,10 +194,6 @@ public class LauncherAnimUtils { @Override public Integer get(View view) { if (view instanceof ScrimView) { return ((ScrimView) view).getBackgroundColor(); } if (!(view.getBackground() instanceof ColorDrawable)) { return Color.TRANSPARENT; } Loading
src/com/android/launcher3/WorkspaceStateTransitionAnimation.java +1 −1 Original line number Diff line number Diff line Loading @@ -199,7 +199,7 @@ public class WorkspaceStateTransitionAnimation { propertySetter.setFloat(sysUiScrim.getSysUIProgress(), AnimatedFloat.VALUE, state.hasFlag(FLAG_HAS_SYS_UI_SCRIM) ? 1 : 0, LINEAR); propertySetter.setScrimViewBackgroundColor(mLauncher.getScrimView(), propertySetter.setViewBackgroundColor(mLauncher.getScrimView(), state.getWorkspaceScrimColor(mLauncher), config.getInterpolator(ANIM_SCRIM_FADE, ACCELERATE_2)); } Loading
src/com/android/launcher3/anim/AnimatedPropertySetter.java +4 −5 Original line number Diff line number Diff line Loading @@ -24,14 +24,13 @@ import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.TimeInterpolator; import android.animation.ValueAnimator; import android.graphics.drawable.ColorDrawable; import android.util.FloatProperty; import android.util.IntProperty; import android.view.View; import androidx.annotation.NonNull; import com.android.launcher3.views.ScrimView; import java.util.function.Consumer; /** Loading Loading @@ -63,9 +62,9 @@ public class AnimatedPropertySetter extends PropertySetter { } @Override public Animator setScrimViewBackgroundColor(ScrimView view, int color, TimeInterpolator interpolator) { if (view == null || view.getBackgroundColor() == color) { public Animator setViewBackgroundColor(View view, int color, TimeInterpolator interpolator) { if (view == null || (view.getBackground() instanceof ColorDrawable && ((ColorDrawable) view.getBackground()).getColor() == color)) { return NO_OP; } ObjectAnimator anim = ObjectAnimator.ofArgb(view, VIEW_BACKGROUND_COLOR, color); Loading