commit | 6e92f05314ae240dccd11347ea86529066b528b3 | [log] [tgz] |
---|---|---|
author | Adam Cohen <adamcohen@google.com> | Tue Jun 07 14:30:10 2016 -0700 |
committer | Adam Cohen <adamcohen@google.com> | Tue Jun 07 14:33:03 2016 -0700 |
tree | 08cc359f5556a39bde06027ce316d86d5f589781 | |
parent | 02d3d43d97a06b8066495de8eeb63a46ee98b7f2 [diff] [blame] |
Ensure that custom actions are available to all apps items -> When BubbleTextViews were being recycled, the RecyclerView was clearing the AccessibilityDelegate. Ensure that this is reset by the adapter when a BubbleTextView is reused. issue 25948877 Change-Id: I95dd21bfdcd602a67925d1b8f06e6ca92d1d7203
diff --git a/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java b/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java index aa6e08e..6bf8abf 100644 --- a/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java +++ b/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java
@@ -118,7 +118,9 @@ info.addAction(mActions.get(RESIZE)); } } - } if ((item instanceof AppInfo) || (item instanceof PendingAddItemInfo)) { + } + + if ((item instanceof AppInfo) || (item instanceof PendingAddItemInfo)) { info.addAction(mActions.get(ADD_TO_WORKSPACE)); } }