diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-06-17 08:43:56 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-06-17 08:44:51 -0700 |
commit | ae50284e0a838139c67caf0064a0977c871497fa (patch) | |
tree | 45147a676bc32b604a9c64808a3a836de748e3a4 /src/com/android/launcher3/allapps | |
parent | bb011dad4e69bec027be1e00d573a3095b318b43 (diff) | |
download | android_packages_apps_Trebuchet-ae50284e0a838139c67caf0064a0977c871497fa.tar.gz android_packages_apps_Trebuchet-ae50284e0a838139c67caf0064a0977c871497fa.tar.bz2 android_packages_apps_Trebuchet-ae50284e0a838139c67caf0064a0977c871497fa.zip |
Moving LauncherAccessibilityDelegate to Launcher to associate it with
activity lifecycle.
Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsGridAdapter.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java index c2a319cc8..c68356ed5 100644 --- a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java +++ b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java @@ -490,16 +490,14 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter. AppInfo info = mApps.getAdapterItems().get(position).appInfo; BubbleTextView icon = (BubbleTextView) holder.mContent; icon.applyFromApplicationInfo(info); - icon.setAccessibilityDelegate( - LauncherAppState.getInstance().getAccessibilityDelegate()); + icon.setAccessibilityDelegate(mLauncher.getAccessibilityDelegate()); break; } case PREDICTION_ICON_VIEW_TYPE: { AppInfo info = mApps.getAdapterItems().get(position).appInfo; BubbleTextView icon = (BubbleTextView) holder.mContent; icon.applyFromApplicationInfo(info); - icon.setAccessibilityDelegate( - LauncherAppState.getInstance().getAccessibilityDelegate()); + icon.setAccessibilityDelegate(mLauncher.getAccessibilityDelegate()); break; } case EMPTY_SEARCH_VIEW_TYPE: |