Merge "Allow pressing home button on recents if command queue not empty" into udc-qpr-dev

This commit is contained in:
Vinit Nayak
2023-07-12 20:58:59 +00:00
committed by Android (Google) Code Review
6 changed files with 14 additions and 13 deletions
@@ -1328,9 +1328,9 @@ public class QuickstepLauncher extends Launcher {
: groupTask.mSplitBounds.leftTaskPercent);
}
public boolean isCommandQueueEmpty() {
public boolean canStartHomeSafely() {
OverviewCommandHelper overviewCommandHelper = mTISBindHelper.getOverviewCommandHelper();
return overviewCommandHelper == null || overviewCommandHelper.isCommandQueueEmpty();
return overviewCommandHelper == null || overviewCommandHelper.canStartHomeSafely();
}
private static final class LauncherTaskViewController extends