From 270bec00cced9ce6656641877eb3b8caa1fb3921 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Thu, 4 May 2023 18:30:48 +0000 Subject: [PATCH] Revert^2 Disable Settings large-screen optimization Disable the optimization that is automatically enabled when including Window Extensions through Activity Embedding. The optimization causes to launch an additional trampoline activity for deep links, even when the screen size is smaller than required by Activity Embedding rules. Bug: 267725145 Bug: 279461170 fixes: 280606740 Test: Build, perf metrics Test: atest LauncherIronwoodIntegrationTests:android.platform.test.scenario.launcher.integration_tests.HomescreenCustomizationTests Test: atest SettingsMultiPaneDeepLinkTest.java Test: run v2/aep-ironwood/suite/test-mapping-ironwood-p0-cujs via ABTD on cheetah/oriole/panther/raven in udc-dev/master branch Change-Id: Ie5535003bf4325854dc723b2bfe4cd4670a5e8ac --- device-oriole.mk | 5 +++++ device-raven.mk | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/device-oriole.mk b/device-oriole.mk index 8c19639..f01655c 100644 --- a/device-oriole.mk +++ b/device-oriole.mk @@ -274,3 +274,8 @@ endif # Window Extensions $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) + +# Disable Settings large-screen optimization enabled by Window Extensions +PRODUCT_SYSTEM_PROPERTIES += \ + persist.settings.large_screen_opt.enabled=false + diff --git a/device-raven.mk b/device-raven.mk index a3067f7..a926be3 100644 --- a/device-raven.mk +++ b/device-raven.mk @@ -293,3 +293,8 @@ endif # Window Extensions $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) + +# Disable Settings large-screen optimization enabled by Window Extensions +PRODUCT_SYSTEM_PROPERTIES += \ + persist.settings.large_screen_opt.enabled=false +