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

Commit e473d309 authored by Jeffrey Young's avatar Jeffrey Young
Browse files

ActivityOptions.setLaunchBounds JavaDoc update

Launching explicitly with null does not launch the activity into
fullscreen. Remove that portion from the JavaDoc.

Bug: 371076869
Test: N/A
Flag: DOCS_ONLY
Change-Id: I78f7b2cbd35ed844f28c712ccf74abb01cc91a2e
parent 6d9cf535
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -180,8 +180,8 @@ public class ActivityOptions extends ComponentOptions {
    public static final String KEY_PACKAGE_NAME = "android:activity.packageName";

    /**
     * The bounds (window size) that the activity should be launched in. Set to null explicitly for
     * full screen. If the key is not found, previous bounds will be preserved.
     * The bounds (window size) that the activity should be launched in.
     * If the key is not found, previous bounds will be preserved.
     * NOTE: This value is ignored on devices that don't have
     * {@link android.content.pm.PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT} or
     * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled.
@@ -1480,12 +1480,11 @@ public class ActivityOptions extends ComponentOptions {
    /**
     * Sets the bounds (window size and position) that the activity should be launched in.
     * Rect position should be provided in pixels and in screen coordinates.
     * Set to {@code null} to explicitly launch fullscreen.
     * <p>
     * <strong>NOTE:</strong> This value is ignored on devices that don't have
     * {@link android.content.pm.PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT} or
     * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled.
     * @param screenSpacePixelRect launch bounds or {@code null} for fullscreen
     * @param screenSpacePixelRect launch bounds
     * @return {@code this} {@link ActivityOptions} instance
     */
    public ActivityOptions setLaunchBounds(@Nullable Rect screenSpacePixelRect) {