Loading quickstep/src/com/android/quickstep/views/FloatingTaskView.java +1 −1 Original line number Diff line number Diff line Loading @@ -319,7 +319,7 @@ public class FloatingTaskView extends FrameLayout { // Fade in the placeholder view during Normal > OverviewSplitSelect if (mSplitPlaceholderView.getAlpha() == 0) { mSplitPlaceholderView.getIconView().setAlpha(0); mSplitPlaceholderView.getIconView().setContentAlpha(0); fadeInSplitPlaceholder(animation, timings); } Loading quickstep/src/com/android/quickstep/views/GroupedTaskView.java +1 −1 Original line number Diff line number Diff line Loading @@ -436,7 +436,7 @@ public class GroupedTaskView extends TaskView { super.setIconsAndBannersTransitionProgress(progress, invert); // Value set by super call float scale = mIconView.getAlpha(); mIconView2.setAlpha(scale); mIconView2.setContentAlpha(scale); mDigitalWellBeingToast2.updateBannerOffset(1f - scale); } Loading quickstep/src/com/android/quickstep/views/IconAppChipView.java +16 −1 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import com.android.launcher3.DeviceProfile; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.touch.PagedOrientationHandler; import com.android.launcher3.util.MultiValueAlpha; import com.android.launcher3.views.ActivityContext; import com.android.quickstep.util.RecentsOrientedState; Loading @@ -51,6 +52,12 @@ public class IconAppChipView extends FrameLayout implements TaskViewIcon { private static final int MENU_BACKGROUND_REVEAL_DURATION = 417; private static final int MENU_BACKGROUND_HIDE_DURATION = 333; private static final int NUM_ALPHA_CHANNELS = 2; private static final int INDEX_CONTENT_ALPHA = 0; private static final int INDEX_COLOR_FILTER_ALPHA = 1; private final MultiValueAlpha mMultiValueAlpha; private IconView mIconView; // Two textview so we can ellipsize the collapsed view and crossfade on expand to the full name. private TextView mIconTextCollapsedView; Loading Loading @@ -98,6 +105,8 @@ public class IconAppChipView extends FrameLayout implements TaskViewIcon { int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); Resources res = getResources(); mMultiValueAlpha = new MultiValueAlpha(this, NUM_ALPHA_CHANNELS); mMultiValueAlpha.setUpdateVisibility(/* updateVisibility= */ true); // Menu dimensions mMaxMenuWidth = res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_menu_max_width); Loading Loading @@ -286,7 +295,13 @@ public class IconAppChipView extends FrameLayout implements TaskViewIcon { @Override public void setIconColorTint(int color, float amount) { // RecentsView's COLOR_TINT animates between 0 and 0.5f, we want to hide the app chip menu. setAlpha(Utilities.mapToRange(amount, 0f, 0.5f, 1f, 0f, LINEAR)); float colorTintAlpha = Utilities.mapToRange(amount, 0f, 0.5f, 1f, 0f, LINEAR); mMultiValueAlpha.get(INDEX_COLOR_FILTER_ALPHA).setValue(colorTintAlpha); } @Override public void setContentAlpha(float alpha) { mMultiValueAlpha.get(INDEX_CONTENT_ALPHA).setValue(alpha); } @Override Loading quickstep/src/com/android/quickstep/views/IconView.java +5 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,11 @@ public class IconView extends View implements TaskViewIcon { return false; } @Override public void setContentAlpha(float alpha) { setAlpha(alpha); } @Override public void setAlpha(float alpha) { super.setAlpha(alpha); Loading quickstep/src/com/android/quickstep/views/TaskView.java +2 −2 Original line number Diff line number Diff line Loading @@ -630,7 +630,7 @@ public class TaskView extends FrameLayout implements Reusable { return; } mModalness = modalness; mIconView.setAlpha(1 - modalness); mIconView.setContentAlpha(1 - modalness); mDigitalWellBeingToast.updateBannerOffset(modalness); } Loading Loading @@ -1253,7 +1253,7 @@ public class TaskView extends FrameLayout implements Reusable { float upperClamp = invert ? 1 : iconScalePercentage; float scale = Interpolators.clampToProgress(FAST_OUT_SLOW_IN, lowerClamp, upperClamp) .getInterpolation(progress); mIconView.setAlpha(scale); mIconView.setContentAlpha(scale); mDigitalWellBeingToast.updateBannerOffset(1f - scale); } Loading Loading
quickstep/src/com/android/quickstep/views/FloatingTaskView.java +1 −1 Original line number Diff line number Diff line Loading @@ -319,7 +319,7 @@ public class FloatingTaskView extends FrameLayout { // Fade in the placeholder view during Normal > OverviewSplitSelect if (mSplitPlaceholderView.getAlpha() == 0) { mSplitPlaceholderView.getIconView().setAlpha(0); mSplitPlaceholderView.getIconView().setContentAlpha(0); fadeInSplitPlaceholder(animation, timings); } Loading
quickstep/src/com/android/quickstep/views/GroupedTaskView.java +1 −1 Original line number Diff line number Diff line Loading @@ -436,7 +436,7 @@ public class GroupedTaskView extends TaskView { super.setIconsAndBannersTransitionProgress(progress, invert); // Value set by super call float scale = mIconView.getAlpha(); mIconView2.setAlpha(scale); mIconView2.setContentAlpha(scale); mDigitalWellBeingToast2.updateBannerOffset(1f - scale); } Loading
quickstep/src/com/android/quickstep/views/IconAppChipView.java +16 −1 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import com.android.launcher3.DeviceProfile; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.touch.PagedOrientationHandler; import com.android.launcher3.util.MultiValueAlpha; import com.android.launcher3.views.ActivityContext; import com.android.quickstep.util.RecentsOrientedState; Loading @@ -51,6 +52,12 @@ public class IconAppChipView extends FrameLayout implements TaskViewIcon { private static final int MENU_BACKGROUND_REVEAL_DURATION = 417; private static final int MENU_BACKGROUND_HIDE_DURATION = 333; private static final int NUM_ALPHA_CHANNELS = 2; private static final int INDEX_CONTENT_ALPHA = 0; private static final int INDEX_COLOR_FILTER_ALPHA = 1; private final MultiValueAlpha mMultiValueAlpha; private IconView mIconView; // Two textview so we can ellipsize the collapsed view and crossfade on expand to the full name. private TextView mIconTextCollapsedView; Loading Loading @@ -98,6 +105,8 @@ public class IconAppChipView extends FrameLayout implements TaskViewIcon { int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); Resources res = getResources(); mMultiValueAlpha = new MultiValueAlpha(this, NUM_ALPHA_CHANNELS); mMultiValueAlpha.setUpdateVisibility(/* updateVisibility= */ true); // Menu dimensions mMaxMenuWidth = res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_menu_max_width); Loading Loading @@ -286,7 +295,13 @@ public class IconAppChipView extends FrameLayout implements TaskViewIcon { @Override public void setIconColorTint(int color, float amount) { // RecentsView's COLOR_TINT animates between 0 and 0.5f, we want to hide the app chip menu. setAlpha(Utilities.mapToRange(amount, 0f, 0.5f, 1f, 0f, LINEAR)); float colorTintAlpha = Utilities.mapToRange(amount, 0f, 0.5f, 1f, 0f, LINEAR); mMultiValueAlpha.get(INDEX_COLOR_FILTER_ALPHA).setValue(colorTintAlpha); } @Override public void setContentAlpha(float alpha) { mMultiValueAlpha.get(INDEX_CONTENT_ALPHA).setValue(alpha); } @Override Loading
quickstep/src/com/android/quickstep/views/IconView.java +5 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,11 @@ public class IconView extends View implements TaskViewIcon { return false; } @Override public void setContentAlpha(float alpha) { setAlpha(alpha); } @Override public void setAlpha(float alpha) { super.setAlpha(alpha); Loading
quickstep/src/com/android/quickstep/views/TaskView.java +2 −2 Original line number Diff line number Diff line Loading @@ -630,7 +630,7 @@ public class TaskView extends FrameLayout implements Reusable { return; } mModalness = modalness; mIconView.setAlpha(1 - modalness); mIconView.setContentAlpha(1 - modalness); mDigitalWellBeingToast.updateBannerOffset(modalness); } Loading Loading @@ -1253,7 +1253,7 @@ public class TaskView extends FrameLayout implements Reusable { float upperClamp = invert ? 1 : iconScalePercentage; float scale = Interpolators.clampToProgress(FAST_OUT_SLOW_IN, lowerClamp, upperClamp) .getInterpolation(progress); mIconView.setAlpha(scale); mIconView.setContentAlpha(scale); mDigitalWellBeingToast.updateBannerOffset(1f - scale); } Loading