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

Commit d5687233 authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android (Google) Code Review
Browse files

Merge "Disallow enter PiP when starting a split task" into main

parents 95a27a11 c46fae34
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1893,6 +1893,10 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
        // will be canceled.
        options.setPendingIntentBackgroundActivityStartMode(MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
        options.setPendingIntentBackgroundActivityLaunchAllowedByPermission(true);

        // TODO (b/336477473): Disallow enter PiP when launching a task in split by default;
        //                     this might have to be changed as more split-to-pip cujs are defined.
        options.setDisallowEnterPictureInPictureWhileLaunching(true);
        opts.putAll(options.toBundle());
    }