Merge "Update hotseat qsb and icons visibility with alpha" into main

This commit is contained in:
Treehugger Robot
2025-05-28 11:18:13 -07:00
committed by Android (Google) Code Review
+2
View File
@@ -112,6 +112,7 @@ public class Hotseat extends CellLayout implements Insettable {
addView(mQsb);
mIconsAlphaChannels = new MultiValueAlpha(getShortcutsAndWidgets(),
ALPHA_CHANNEL_CHANNELS_COUNT);
mIconsAlphaChannels.setUpdateVisibility(true);
if (mQsb instanceof Reorderable qsbReorderable) {
mQsbTranslationX = qsbReorderable.getTranslateDelegate()
.getTranslationX(MultiTranslateDelegate.INDEX_NAV_BAR_ANIM);
@@ -119,6 +120,7 @@ public class Hotseat extends CellLayout implements Insettable {
mIconsTranslationXFactory = new MultiPropertyFactory<>(getShortcutsAndWidgets(),
VIEW_TRANSLATE_X, ICONS_TRANSLATION_X_CHANNELS_COUNT, Float::sum);
mQsbAlphaChannels = new MultiValueAlpha(mQsb, ALPHA_CHANNEL_CHANNELS_COUNT);
mQsbAlphaChannels.setUpdateVisibility(true);
}
/** Provides translation X for hotseat icons for the channel. */