Refactor LauncherAccessibilityDelegate so it can be used outside of Launcher

Bug: 198438631
Test: used talkback on launcher
Change-Id: I991320184ad93816c4ba21fb8fcfe12202bfae25
This commit is contained in:
Schneider Victor-tulias committed 2021-11-23 12:48:14 -08:00
1 parent 329d07d91d
commit bdb0dd8cfb
7 files changed
+233 -183

No files matched your search

@@ -44,7 +44,7 @@ public class QuickstepAccessibilityDelegate extends LauncherAccessibilityDelegat
@Override
protected boolean performAction(View host, ItemInfo item, int action, boolean fromKeyboard) {
QuickstepLauncher launcher = (QuickstepLauncher) mLauncher;
QuickstepLauncher launcher = (QuickstepLauncher) mContext;
if (action == PIN_PREDICTION) {
if (launcher.getHotseatPredictionController() == null) {
return false;