OSDN Git Service

Fixed a bug where talkback couldn't scroll through notifications
authorSelim Cinek <cinek@google.com>
Thu, 2 Jun 2016 22:27:56 +0000 (15:27 -0700)
committerSelim Cinek <cinek@google.com>
Thu, 2 Jun 2016 22:27:56 +0000 (15:27 -0700)
Change-Id: Idac298efe3a25be1d435776817180c3acf78bf84
Fixes: 29046169

packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java

index 4c242cc..3499146 100644 (file)
@@ -53,6 +53,7 @@ import android.view.accessibility.AccessibilityNodeInfo;
 import android.view.animation.AnimationUtils;
 import android.view.animation.Interpolator;
 import android.widget.OverScroller;
+import android.widget.ScrollView;
 
 import com.android.internal.logging.MetricsLogger;
 import com.android.internal.logging.MetricsProto.MetricsEvent;
@@ -3573,6 +3574,8 @@ public class NotificationStackScrollLayout extends ViewGroup
                 info.addAction(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_DOWN);
             }
         }
+        // Talkback only listenes to scroll events of certain classes, let's make us a scrollview
+        info.setClassName(ScrollView.class.getName());
     }
 
     /** @hide */