From f18920bc5ee643e802a8af64f0eaed4d23758e34 Mon Sep 17 00:00:00 2001 From: Jason Chiu Date: Fri, 27 Oct 2023 11:18:47 +0800 Subject: [PATCH] Disable the large screen optimization system property by default When the property is true, Settings will invoke SplitController's APIs to check if split support is available. However on a regular phone, it's uncessary to take time to execute the APIs, which impacts the app startup time. Setting the property false by default can help skip the API invocation when the property is not set. Developers can customize it in the build file for large screen devices. Test: build Bug: 297794010 Change-Id: I91822d4b6afd49cd08fc546fbe5f231b2debc0f2 --- .../settings/activityembedding/ActivityEmbeddingUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/activityembedding/ActivityEmbeddingUtils.java b/src/com/android/settings/activityembedding/ActivityEmbeddingUtils.java index 67d56e0393a..74a967332da 100644 --- a/src/com/android/settings/activityembedding/ActivityEmbeddingUtils.java +++ b/src/com/android/settings/activityembedding/ActivityEmbeddingUtils.java @@ -53,7 +53,7 @@ public class ActivityEmbeddingUtils { * @see androidx.window.embedding.SplitController.SplitSupportStatus#SPLIT_UNAVAILABLE */ private static final boolean SHOULD_ENABLE_LARGE_SCREEN_OPTIMIZATION = - SystemProperties.getBoolean("persist.settings.large_screen_opt.enabled", true); + SystemProperties.getBoolean("persist.settings.large_screen_opt.enabled", false); private static final String TAG = "ActivityEmbeddingUtils";