diff options
| author | 2018-08-30 01:45:55 +0000 | |
|---|---|---|
| committer | 2018-08-30 01:45:55 +0000 | |
| commit | 7795e97f27d5fd6f33fafadcfdaa33d42ca40c29 (patch) | |
| tree | 7e6df3dbe97d4ea6a378c25928793af6061bfc4f | |
| parent | 8bb6781e566fb36a5c505307204e0c33cf092961 (diff) | |
| parent | 557145676c7d0f773b3501c99257bd61ab360720 (diff) | |
Merge "Docs: fixed formatting for setLaunchBounds()" into pi-dev
| -rw-r--r-- | core/java/android/app/ActivityOptions.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/java/android/app/ActivityOptions.java b/core/java/android/app/ActivityOptions.java index ecd99a7b5402..50100e7554c3 100644 --- a/core/java/android/app/ActivityOptions.java +++ b/core/java/android/app/ActivityOptions.java @@ -956,14 +956,15 @@ public class ActivityOptions { } /** - * Sets the bounds (window size) that the activity should be launched in. + * 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 null explicitly for fullscreen. + * Set to {@code null} to explicitly launch fullscreen. * <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_PICTURE_IN_PICTURE} enabled. - * @param screenSpacePixelRect Launch bounds to use for the activity or null for fullscreen. + * @param screenSpacePixelRect launch bounds or {@code null} for fullscreen + * @return {@code this} {@link ActivityOptions} instance */ public ActivityOptions setLaunchBounds(@Nullable Rect screenSpacePixelRect) { mLaunchBounds = screenSpacePixelRect != null ? new Rect(screenSpacePixelRect) : null; |