diff options
| author | 2016-03-15 18:19:11 +0000 | |
|---|---|---|
| committer | 2016-03-15 18:19:13 +0000 | |
| commit | 68b36ee07b6f8c184e0b9f297ae672b5685a978c (patch) | |
| tree | a575634775b9b84953e243be57ea0bc9d0ba0016 | |
| parent | 63a95b0d80eee24ef252bf5e799bdcc09be0b573 (diff) | |
| parent | 8f1701d9dc5f61e81d7eabbaf7d1c055a432328e (diff) | |
Merge "Update ActivityOptions#setLaunchBounds() docs" into nyc-dev
| -rw-r--r-- | core/java/android/app/ActivityOptions.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/app/ActivityOptions.java b/core/java/android/app/ActivityOptions.java index 094950bfb3fd..f1784559c20e 100644 --- a/core/java/android/app/ActivityOptions.java +++ b/core/java/android/app/ActivityOptions.java @@ -777,15 +777,16 @@ public class ActivityOptions { /** * 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. * <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 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) { - mLaunchBounds = launchBounds != null ? new Rect(launchBounds) : null; + public ActivityOptions setLaunchBounds(@Nullable Rect screenSpacePixelRect) { + mLaunchBounds = screenSpacePixelRect != null ? new Rect(screenSpacePixelRect) : null; return this; } |