From 08c25758026e5e38340446d6ed7913bfe82398de Mon Sep 17 00:00:00 2001 From: Schneider Victor-tulias Date: Wed, 13 Mar 2024 15:16:32 -0400 Subject: [PATCH] Fix KQS app launch through tapping KeyboardQuickSwitchView only ever has 2 direct children, and all of the task views we're actually concerned with are in a scrollview. removing the extra index handling as this is being handled properly downstream. Flag: LEGACY ENABLE_KEYBOARD_QUICK_SWITCH ENABLED Fixes: 328692760 Fixes: 304518513 Test: opened KQS and tapped all tasks (6 + overview) Change-Id: I4e919cce7f1ab55822f93d34c1533062a71aa879 --- .../launcher3/taskbar/KeyboardQuickSwitchViewController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java index c830aa8640..5134f3bd51 100644 --- a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java @@ -238,8 +238,7 @@ public class KeyboardQuickSwitchViewController { } void launchTaskAt(int index) { - mCurrentFocusIndex = Utilities.boundToRange( - index, 0, mKeyboardQuickSwitchView.getChildCount() - 1); + mCurrentFocusIndex = index; mControllers.taskbarActivityContext.launchKeyboardFocusedTask(); }