[Large screen] Set SplitPairRule for DeepLinkHomepageActivity

Setting app should set SplitPairRule for all the alias of
SettingsHomepageActivity to handle all the different
launch cases.

Bug: 204156913
Bug: 204399375
Test: manual
      1. Launch settings in unfold screen
      2. Fold screen
      3. Launch wallpaper app
      4. Unfold screen
Change-Id: I3ad33a750ef19390bc8dc3fb4dc6f1c80630d57f
This commit is contained in:
Arc Wang
2021-11-05 16:18:19 +08:00
parent 672185ffe7
commit 82eeacf275

View File

@@ -109,6 +109,16 @@ public class ActivityEmbeddingRulesController {
true /* finishSecondaryWithPrimary */,
clearTop);
registerTwoPanePairRule(
context,
new ComponentName(Utils.SETTINGS_PACKAGE_NAME,
SettingsHomepageActivity.ALIAS_DEEP_LINK),
secondaryComponent,
secondaryIntentAction,
true /* finishPrimaryWithSecondary */,
true /* finishSecondaryWithPrimary */,
clearTop);
registerTwoPanePairRule(
context,
getComponentName(context, SettingsHomepageActivity.class),