Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82eeacf2 authored by Arc Wang's avatar Arc Wang
Browse files

[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
parent 672185ff
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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),