mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Do not add HOTSEAT_ICONS to visible elements for device type "phone" in
ALL_APPS State HOTSEAT_ICONS got added to visible elements for ALL_APPS State in ag/16992837. ============================================================ Phone Before: HotSeat present in view hierarchy - https://hsv.googleplex.com/4906040983289856?node=41 Video: https://b.corp.google.com/issues/228803923#comment9 After: HotSeat not present in view hierarchy - https://hsv.googleplex.com/5379653922455552?node=42 Video: https://b.corp.google.com/issues/228803923#comment11 ============================================================ Tablets I couldn't test this implementation on tablet. But I have verified on a phone locally by adding HOTSEAT_ICONS to visible elements and then verifying "IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS" get set and hotseat icons are not focusable in all apps. Video : https://b.corp.google.com/issues/228803923#comment14 ============================================================ Bug: 228803923 Bug: 227565451 Test: Manual. See the video attached in bug. Change-Id: I055e3bb61c8cfd240e0fe1000fe3a391a150f6d1
This commit is contained in:
@@ -25,6 +25,7 @@ import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_X;
|
||||
import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_Y;
|
||||
import static com.android.launcher3.LauncherAnimUtils.WORKSPACE_SCALE_PROPERTY_FACTORY;
|
||||
import static com.android.launcher3.LauncherState.FLAG_HAS_SYS_UI_SCRIM;
|
||||
import static com.android.launcher3.LauncherState.FLAG_HOTSEAT_INACCESSIBLE;
|
||||
import static com.android.launcher3.LauncherState.HINT_STATE;
|
||||
import static com.android.launcher3.LauncherState.HOTSEAT_ICONS;
|
||||
import static com.android.launcher3.LauncherState.NORMAL;
|
||||
@@ -151,6 +152,12 @@ public class WorkspaceStateTransitionAnimation {
|
||||
propertySetter.setViewAlpha(mLauncher.getWorkspace().getPageIndicator(),
|
||||
workspacePageIndicatorAlpha, fadeInterpolator);
|
||||
|
||||
// Update the accessibility flags for hotseat based on launcher state.
|
||||
hotseat.setImportantForAccessibility(
|
||||
state.hasFlag(FLAG_HOTSEAT_INACCESSIBLE)
|
||||
? View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
|
||||
: View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);
|
||||
|
||||
Interpolator translationInterpolator =
|
||||
config.getInterpolator(ANIM_WORKSPACE_TRANSLATE, ZOOM_OUT);
|
||||
propertySetter.setFloat(mWorkspace, VIEW_TRANSLATE_X,
|
||||
|
||||
Reference in New Issue
Block a user