OSDN Git Service

Accessibility delegate is already set in BubbleTextView constructor. Not need to...
authorSunny Goyal <sunnygoyal@google.com>
Thu, 7 Jan 2016 21:50:08 +0000 (13:50 -0800)
committerSunny Goyal <sunnygoyal@google.com>
Thu, 7 Jan 2016 21:51:09 +0000 (13:51 -0800)
Bug: 25948877
Change-Id: I1d301a6169404a78881fa29da6d6bdf2fec8f146

src/com/android/launcher3/allapps/AllAppsGridAdapter.java

index 38a3e3c..748c749 100644 (file)
@@ -474,8 +474,6 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter.
                 icon.setLongPressTimeout(ViewConfiguration.get(parent.getContext())
                         .getLongPressTimeout());
                 icon.setFocusable(true);
-                icon.setAccessibilityDelegate(
-                        LauncherAppState.getInstance().getAccessibilityDelegate());
                 return new ViewHolder(icon);
             }
             case PREDICTION_ICON_VIEW_TYPE: {
@@ -487,8 +485,6 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter.
                 icon.setLongPressTimeout(ViewConfiguration.get(parent.getContext())
                         .getLongPressTimeout());
                 icon.setFocusable(true);
-                icon.setAccessibilityDelegate(
-                        LauncherAppState.getInstance().getAccessibilityDelegate());
                 return new ViewHolder(icon);
             }
             case EMPTY_SEARCH_VIEW_TYPE: