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
2021-11-03 16:26:41 -07:00
parent 329d07d91d
commit bdb0dd8cfb
7 changed files with 233 additions and 183 deletions

View File

@@ -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;