Merge "Tapping overflow button toggles KQS" into main

This commit is contained in:
Treehugger Robot
2024-10-29 19:56:33 +00:00
committed by Android (Google) Code Review
3 changed files with 39 additions and 10 deletions
@@ -69,6 +69,7 @@ public class KeyboardQuickSwitchViewController {
private boolean mOnDesktop;
private boolean mWasDesktopTaskFilteredOut;
private boolean mWasOpenedFromTaskbar;
private boolean mDetachingFromWindow = false;
@@ -87,6 +88,10 @@ public class KeyboardQuickSwitchViewController {
return mCurrentFocusIndex;
}
protected boolean wasOpenedFromTaskbar() {
return mWasOpenedFromTaskbar;
}
protected void openQuickSwitchView(
@NonNull List<GroupTask> tasks,
int numHiddenTasks,
@@ -100,6 +105,7 @@ public class KeyboardQuickSwitchViewController {
mOverlayContext.getDragLayer().addView(mKeyboardQuickSwitchView);
mOnDesktop = onDesktop;
mWasDesktopTaskFilteredOut = wasDesktopTaskFilteredOut;
mWasOpenedFromTaskbar = wasOpenedFromTaskbar;
mKeyboardQuickSwitchView.applyLoadPlan(
mOverlayContext,
@@ -261,6 +267,7 @@ public class KeyboardQuickSwitchViewController {
pw.println(prefix + "\tmCurrentFocusIndex=" + mCurrentFocusIndex);
pw.println(prefix + "\tmOnDesktop=" + mOnDesktop);
pw.println(prefix + "\tmWasDesktopTaskFilteredOut=" + mWasDesktopTaskFilteredOut);
pw.println(prefix + "\tmWasOpenedFromTaskbar=" + mWasOpenedFromTaskbar);
}
/**