From d8526a858fc94871fc31dc520215f3ecba9e14fe Mon Sep 17 00:00:00 2001 From: Toni Barzic Date: Wed, 21 May 2025 16:45:41 +0000 Subject: [PATCH] Update hotseat qsb and icons visibility with alpha Updates multi value alpha tracker for qsb and icons in hotseat to update the view visibility when alpha is set to fully transparent. This prevents fully transparent views from getting keyboard focus, or interactions where tapping on seemingly empty parts of the home screen launching search. Test: On desktop device, where hotseat is hidden due to presence of tasbkar, verify that invisible hotseat icons, or qsb do not get focused during keyboard navigation. Verify that tapping just above taskbar in left bottom area of workspace is no-op. Bug: 404868614 Flag: EXEMPT bugfix Change-Id: Ibccd3536209c7966498863fcb3f006b721443c3c --- src/com/android/launcher3/Hotseat.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index ef0f44f1fd..99895e2586 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -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. */