OSDN Git Service

Make "dismiss all" button keyboard accessible.
authorOren Blasberg <orenb@google.com>
Sat, 11 Jul 2015 00:00:17 +0000 (17:00 -0700)
committerOren Blasberg <orenb@google.com>
Wed, 15 Jul 2015 19:16:27 +0000 (19:16 +0000)
This allows users to hit Tab while in the notification pane and access
the Dismiss All icon, with a physical keyboard.

Bug: 22411158
Change-Id: I544bd3ccafcae210770317193099b26972d6a52b
(cherry picked from commit 10cb3105c79dd7de1f2cc9297b1d3b77598de8e3)

packages/SystemUI/res/layout/status_bar_notification_dismiss_all.xml

index 6a000fd..dc7577a 100644 (file)
@@ -27,6 +27,7 @@
             android:layout_width="48dp"
             android:layout_height="48dp"
             android:layout_gravity="end"
+            android:focusable="true"
             android:background="@drawable/ripple_drawable"
             android:contentDescription="@string/accessibility_clear_all"/>
 </com.android.systemui.statusbar.DismissView>