Loading packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/DragToInteractView.kt +6 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,12 @@ class DragToInteractView(context: Context) : FrameLayout(context) { iconResId = R.drawable.pip_ic_close_white ) ) // Ensure this is unfocusable & uninteractable isClickable = false isFocusable = false importantForAccessibility = IMPORTANT_FOR_ACCESSIBILITY_NO // END DragToInteractView modification } Loading packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuMessageView.java +6 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,12 @@ class MenuMessageView extends LinearLayout implements addView(mTextView, Index.TEXT_VIEW, new LayoutParams(/* width= */ 0, WRAP_CONTENT, /* weight= */ 1)); addView(mUndoButton, Index.UNDO_BUTTON, new LayoutParams(WRAP_CONTENT, WRAP_CONTENT)); // The message box is not focusable, but will announce its contents when it appears. // The textView and button are still interactable. setClickable(false); setFocusable(false); setAccessibilityLiveRegion(ACCESSIBILITY_LIVE_REGION_POLITE); } @Override Loading packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuView.java +4 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,10 @@ class MenuView extends FrameLayout implements loadLayoutResources(); addView(mTargetFeaturesView); setClickable(false); setFocusable(false); setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); } @Override Loading packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuViewLayer.java +3 −0 Original line number Diff line number Diff line Loading @@ -319,6 +319,9 @@ class MenuViewLayer extends FrameLayout implements if (Flags.floatingMenuAnimatedTuck()) { setClipChildren(true); } setClickable(false); setFocusable(false); setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); } @Override Loading Loading
packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/DragToInteractView.kt +6 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,12 @@ class DragToInteractView(context: Context) : FrameLayout(context) { iconResId = R.drawable.pip_ic_close_white ) ) // Ensure this is unfocusable & uninteractable isClickable = false isFocusable = false importantForAccessibility = IMPORTANT_FOR_ACCESSIBILITY_NO // END DragToInteractView modification } Loading
packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuMessageView.java +6 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,12 @@ class MenuMessageView extends LinearLayout implements addView(mTextView, Index.TEXT_VIEW, new LayoutParams(/* width= */ 0, WRAP_CONTENT, /* weight= */ 1)); addView(mUndoButton, Index.UNDO_BUTTON, new LayoutParams(WRAP_CONTENT, WRAP_CONTENT)); // The message box is not focusable, but will announce its contents when it appears. // The textView and button are still interactable. setClickable(false); setFocusable(false); setAccessibilityLiveRegion(ACCESSIBILITY_LIVE_REGION_POLITE); } @Override Loading
packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuView.java +4 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,10 @@ class MenuView extends FrameLayout implements loadLayoutResources(); addView(mTargetFeaturesView); setClickable(false); setFocusable(false); setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); } @Override Loading
packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuViewLayer.java +3 −0 Original line number Diff line number Diff line Loading @@ -319,6 +319,9 @@ class MenuViewLayer extends FrameLayout implements if (Flags.floatingMenuAnimatedTuck()) { setClipChildren(true); } setClickable(false); setFocusable(false); setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); } @Override Loading