diff options
author | Pinyao Ting <pinyaoting@google.com> | 2019-09-27 16:29:32 -0700 |
---|---|---|
committer | Pinyao Ting <pinyaoting@google.com> | 2019-10-03 07:47:33 -0700 |
commit | 52d025215070a97c05a9cf0b092508ea15145aad (patch) | |
tree | f5f4273d6bfd477d5f5221d5834555b31dd09a5c | |
parent | 4a4755fc70beae859425be789be0eb9342377a9f (diff) | |
download | packages_apps_Trebuchet-52d025215070a97c05a9cf0b092508ea15145aad.tar.gz packages_apps_Trebuchet-52d025215070a97c05a9cf0b092508ea15145aad.tar.bz2 packages_apps_Trebuchet-52d025215070a97c05a9cf0b092508ea15145aad.zip |
Fix the issue talkback feedback doesn't say anything when user long
press on an app icon.
When user long press on an app icon, the a11y focus event wasn't
properly triggered on the container of deep shortcut, which is why
there wasn't any talkback feedback after long press on an app icon.
Bug: 140786694
Change-Id: Ib38db147faa5a163985f1ed74beec04c588b022c
-rw-r--r-- | src/com/android/launcher3/AbstractFloatingView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/AbstractFloatingView.java b/src/com/android/launcher3/AbstractFloatingView.java index 8fddf3cff..af2cdc3ed 100644 --- a/src/com/android/launcher3/AbstractFloatingView.java +++ b/src/com/android/launcher3/AbstractFloatingView.java @@ -16,7 +16,6 @@ package com.android.launcher3; -import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_FOCUSED; import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED; import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED; @@ -30,6 +29,7 @@ import android.util.AttributeSet; import android.util.Pair; import android.view.MotionEvent; import android.view.View; +import android.view.accessibility.AccessibilityNodeInfo; import android.widget.LinearLayout; import androidx.annotation.IntDef; @@ -171,7 +171,7 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch targetInfo.first, TYPE_WINDOW_STATE_CHANGED, targetInfo.second); if (mIsOpen) { - sendAccessibilityEvent(TYPE_VIEW_FOCUSED); + performAccessibilityAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, null); } ActivityContext.lookupContext(getContext()).getDragLayer() .sendAccessibilityEvent(TYPE_WINDOW_CONTENT_CHANGED); |