From dfbf253f90d385ebd862287d89825b8a47150e63 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Tue, 27 Feb 2024 16:54:02 -0800 Subject: [PATCH] Remove A11y node info for SplitInstructionsView * Individual text view and cancel button still have their own a11y actions, but top level view doesn't need one Test: Tested w/ switches to ensure parent view doesn't get selected. Tested w/ Talkback to ensure we can still cancel through talkback Fixes: 323462927 Change-Id: I60d21f6e768c59f29f51007f56ff784821487895 --- .../views/SplitInstructionsView.java | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/SplitInstructionsView.java b/quickstep/src/com/android/quickstep/views/SplitInstructionsView.java index a11a913e42..be07e8a995 100644 --- a/quickstep/src/com/android/quickstep/views/SplitInstructionsView.java +++ b/quickstep/src/com/android/quickstep/views/SplitInstructionsView.java @@ -21,11 +21,9 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.content.Context; -import android.os.Bundle; import android.util.AttributeSet; import android.util.FloatProperty; import android.view.ViewGroup; -import android.view.accessibility.AccessibilityNodeInfo; import android.widget.LinearLayout; import android.widget.TextView; @@ -141,32 +139,6 @@ public class SplitInstructionsView extends LinearLayout { mLauncher.getStateManager().goToState(LauncherState.NORMAL); } - @Override - public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { - super.onInitializeAccessibilityNodeInfo(info); - if (!FeatureFlags.enableSplitContextually()) { - return; - } - - info.addAction(new AccessibilityNodeInfo.AccessibilityAction( - R.string.toast_split_select_cont_desc, - getResources().getString(R.string.toast_split_select_cont_desc) - )); - } - - @Override - public boolean performAccessibilityAction(int action, Bundle arguments) { - if (!FeatureFlags.enableSplitContextually()) { - return super.performAccessibilityAction(action, arguments); - } - - if (action == R.string.toast_split_select_cont_desc) { - exitSplitSelection(); - return true; - } - return super.performAccessibilityAction(action, arguments); - } - void ensureProperRotation() { ((RecentsView) mLauncher.getOverviewPanel()).getPagedOrientationHandler() .setSplitInstructionsParams(