From 438d405aab391f5c515b89151544c6a9e853e430 Mon Sep 17 00:00:00 2001 From: Charlie Anderson Date: Tue, 25 Apr 2023 14:38:57 -0400 Subject: Adding a new Edit Mode LauncherState - Edit Mode doesn't close after dragging / dropping an app - Edit Mode can be entered through options popup menu, Spring Loaded still entered by dragging items - Adds new onLeavingState call to launcher states to cleanup changes Bug: 279590398 Flag: MULTI_SELECT_EDIT_MODE Test: manually tested the new state with flag on/off Change-Id: If4550037f9659dcb8cd8b1943388d1ec5d55fa29 --- tests/shared/com/android/launcher3/testing/shared/TestProtocol.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java b/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java index 601b07e771..2b67cdde80 100644 --- a/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java +++ b/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java @@ -36,6 +36,7 @@ public final class TestProtocol { public static final int HINT_STATE_ORDINAL = 7; public static final int HINT_STATE_TWO_BUTTON_ORDINAL = 8; public static final int OVERVIEW_SPLIT_SELECT_ORDINAL = 9; + public static final int EDIT_MODE_STATE_ORDINAL = 10; public static final String TAPL_EVENTS_TAG = "TaplEvents"; public static final String SEQUENCE_MAIN = "Main"; public static final String SEQUENCE_TIS = "TIS"; @@ -63,6 +64,8 @@ public final class TestProtocol { return "Hint2Button"; case OVERVIEW_SPLIT_SELECT_ORDINAL: return "OverviewSplitSelect"; + case EDIT_MODE_STATE_ORDINAL: + return "EditMode"; default: return "Unknown"; } -- cgit v1.2.3