Implements the "Save App Pair" button in Overview Actions
Second attempt at enabling this feature. See ag/25143701, linked bugs, and revert history for details. This patch is tested with mokey devices and does not crash! This patch includes: - Ability to "save app pair" from Overview Actions. - Internally the actions bar is not longer hidden for GroupedTasks; instead the individual buttons for "Select", "Screenshot", and "Split screen" are toggled off and "Save app pair" is toggled on. - "Save app pair" option does not appear in icon menu when it is visible in the Actions Bar. - Addition to go/quickstep/res/layout/overview_actions_container.xml to support addition of the new button. Note: This patch introduces a slight regression where users are now able to long-press to select text on task 1 of a paired GroupedTaskView (previously we did not let them select text on either task for consistency.) Will follow up with a fix -- see bug for details. Flag: ACONFIG com.android.wm.shell.enable_app_pairs TRUNKFOOD Fixes: 315545418 Fixes: 315292030 Test: Manual, all action buttons still work and "Save app pair" appears and disappears correctly Change-Id: I4b4ac525cfd5eb9cfcd757d0bffc7215b04f9a3d
This commit is contained in:
1 parent
7e0703eca0
commit
41d8ae8a7a
12 files changed
+181
-50
No files matched your search
@@ -21,6 +21,7 @@ import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_NAVBAR_UN
|
||||
import static com.android.launcher3.config.FeatureFlags.FOLDABLE_SINGLE_PAGE;
|
||||
import static com.android.launcher3.config.FeatureFlags.enableSplitContextually;
|
||||
import static com.android.launcher3.testing.shared.TestProtocol.TEST_INFO_RESPONSE_FIELD;
|
||||
import static com.android.launcher3.config.FeatureFlags.enableAppPairs;
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
|
||||
import android.app.Activity;
|
||||
@@ -300,6 +301,11 @@ public class TestInformationHandler implements ResourceBasedOverride {
|
||||
return response;
|
||||
}
|
||||
|
||||
case TestProtocol.REQUEST_FLAG_ENABLE_APP_PAIRS: {
|
||||
response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, enableAppPairs());
|
||||
return response;
|
||||
}
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user