Refactoring OverviewCommandHelper (1/3)
- Updates pendingCommands to be a ConcurrentLinkedDeque and make the list safe across multiple threads. - Introduces CommandStatus to clear only IDLE and COMPLETED commands. - Adds CommandType enum to prevent adding an invalid command value into the queue and having an unexpected behavior. - Log messages improved Bug: 352046797 Bug: 351122926 Flag: EXEMPT bugfix. Test: Manual. Change-Id: I80705dca0be579e62cb9e2bd923808dd33c4d633
This commit is contained in:
1 parent
4fd9449d64
commit
e7ae4e31ae
4 files changed
+122
-123
No files matched your search
@@ -46,6 +46,7 @@ import com.android.launcher3.util.DisplayController;
|
||||
import com.android.quickstep.GestureState;
|
||||
import com.android.quickstep.InputConsumer;
|
||||
import com.android.quickstep.OverviewCommandHelper;
|
||||
import com.android.quickstep.OverviewCommandHelper.CommandType;
|
||||
import com.android.systemui.shared.system.InputMonitorCompat;
|
||||
|
||||
/**
|
||||
@@ -200,7 +201,7 @@ public class TaskbarUnstashInputConsumer extends DelegateInputConsumer {
|
||||
break;
|
||||
case MotionEvent.ACTION_BUTTON_RELEASE:
|
||||
if (isStashedTaskbarHovered) {
|
||||
mOverviewCommandHelper.addCommand(OverviewCommandHelper.TYPE_HOME);
|
||||
mOverviewCommandHelper.addCommand(CommandType.HOME);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user