Add method to determine if launcher is in split selection state

* Available for both launcher and taskbar via
ActivityContext

Bug: 295981634
Change-Id: I8767deea0b2432da3047209037874c966b83c3b3
This commit is contained in:
Vinit Nayak
2023-10-06 14:40:49 -07:00
parent a6b74ffdfc
commit 1525cd7269
3 changed files with 11 additions and 2 deletions
@@ -691,7 +691,7 @@ public class QuickstepLauncher extends Launcher {
}
@Override
protected boolean isSplitSelectionEnabled() {
public boolean isSplitSelectionEnabled() {
return mSplitSelectStateController.isSplitSelectActive();
}
+1 -1
View File
@@ -3103,7 +3103,7 @@ public class Launcher extends StatefulActivity<LauncherState>
}
/** To be overridden by subclasses */
protected boolean isSplitSelectionEnabled() {
public boolean isSplitSelectionEnabled() {
// Overridden
return false;
}
@@ -145,6 +145,15 @@ public interface ActivityContext {
// Overridden, intentionally empty
}
/**
* @return {@code true} if user has selected the first split app and is in the process of
* selecting the second
*/
default boolean isSplitSelectionEnabled() {
// Overridden
return false;
}
/**
* The root view to support drag-and-drop and popup support.
*/