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
This commit is contained in:
Arc Wang
2022-08-01 16:26:04 +08:00
parent 2e298b25d0
commit 059efbd09f

View File

@@ -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">
<intent-filter android:priority="1">
@@ -187,7 +186,6 @@
<activity-alias android:name="Settings"
android:label="@string/settings_label_launcher"
android:taskAffinity="com.android.settings.root"
android:launchMode="singleTask"
android:exported="true"
android:targetActivity=".homepage.SettingsHomepageActivity">
<intent-filter>