Merge "Return to home when overview command fails." into tm-qpr-dev am: 62b9f80d1e am: 7d9e1d6fb9

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20442700

Change-Id: Iad101873486c0547b7be3ae5af5c9b8772c27324
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Schneider Victor-tulias
2022-11-14 21:40:22 +00:00
committed by Automerger Merge Worker
3 changed files with 12 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ public class OverviewCommandHelper {
*/
@BinderThread
public void addCommand(int type) {
if (mPendingCommands.size() > MAX_QUEUE_SIZE) {
if (mPendingCommands.size() >= MAX_QUEUE_SIZE) {
return;
}
CommandInfo cmd = new CommandInfo(type);