Loading core/java/android/app/ActivityOptions.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -777,15 +777,16 @@ public class ActivityOptions { /** /** * Sets the bounds (window size) that the activity should be launched in. * Sets the bounds (window size) that the activity should be launched in. * Rect position should be provided in pixels and in screen coordinates. * Set to null explicitly for fullscreen. * Set to null explicitly for fullscreen. * <p> * <p> * <strong>NOTE:<strong/> This value is ignored on devices that don't have * <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_FREEFORM_WINDOW_MANAGEMENT} or * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled. * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled. * @param launchBounds Launch bounds to use for the activity or null for fullscreen. * @param screenSpacePixelRect Launch bounds to use for the activity or null for fullscreen. */ */ public ActivityOptions setLaunchBounds(@Nullable Rect launchBounds) { public ActivityOptions setLaunchBounds(@Nullable Rect screenSpacePixelRect) { mLaunchBounds = launchBounds != null ? new Rect(launchBounds) : null; mLaunchBounds = screenSpacePixelRect != null ? new Rect(screenSpacePixelRect) : null; return this; return this; } } Loading Loading
core/java/android/app/ActivityOptions.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -777,15 +777,16 @@ public class ActivityOptions { /** /** * Sets the bounds (window size) that the activity should be launched in. * Sets the bounds (window size) that the activity should be launched in. * Rect position should be provided in pixels and in screen coordinates. * Set to null explicitly for fullscreen. * Set to null explicitly for fullscreen. * <p> * <p> * <strong>NOTE:<strong/> This value is ignored on devices that don't have * <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_FREEFORM_WINDOW_MANAGEMENT} or * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled. * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled. * @param launchBounds Launch bounds to use for the activity or null for fullscreen. * @param screenSpacePixelRect Launch bounds to use for the activity or null for fullscreen. */ */ public ActivityOptions setLaunchBounds(@Nullable Rect launchBounds) { public ActivityOptions setLaunchBounds(@Nullable Rect screenSpacePixelRect) { mLaunchBounds = launchBounds != null ? new Rect(launchBounds) : null; mLaunchBounds = screenSpacePixelRect != null ? new Rect(screenSpacePixelRect) : null; return this; return this; } } Loading