From 059efbd09f49d544ccea166d0a2e0b17c9ec3f02 Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Mon, 1 Aug 2022 16:26:04 +0800 Subject: [PATCH] Remove singleTask from Settings homepage Launch Settings homepage on a NO ActivityEmbedding supported device: Before & after this change, launch Settings homepage will resume an existing Settings task and finish SubSettings on top of Settings homepage. Launch Settings homepage on a ActivityEmbedding supported device: Before this change, launch Settings homepage will resume an existing Settings task and finish SubSettings on top of Settings homepage and then start SubSettings. After this change, launch Settings homepage will resume an existing Settings task and resume existing SubSettings. This change improves UX (keep right pane Activity status) and improves launch performance (it will not finish and start right pane Activity) for ActivityEmbedding supported devices. Bug: 240666118 Test: manual Launch Settings and observe events log. Change-Id: I226b852b360e7106e861752d748f644596a0f320 --- AndroidManifest.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 784a94bb50e..d957d8daae0 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -143,7 +143,6 @@ android:label="@string/settings_label_launcher" android:theme="@style/Theme.Settings.Home" android:taskAffinity="com.android.settings.root" - android:launchMode="singleTask" android:exported="true" android:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout|smallestScreenSize"> @@ -187,7 +186,6 @@