Update the API doc for shortEdge/always cutout flags

Bug: 216065293
Test: make
Change-Id: I80cd9f3377ba27e61f26f74000a656da1489df18
This commit is contained in:
Shawn Lin
2022-11-11 08:10:22 +00:00
parent f90440ea43
commit 613ca984b1

View File

@@ -3408,6 +3408,11 @@ public interface WindowManager extends ViewManager {
* alt="Screenshot of an activity on a display with a cutout on the long edge in portrait,
* letterbox is applied."/>
*
* <p>
* Note: Android might not allow the content view to overlap the system bars in view level.
* To override this behavior and allow content to be able to extend into the cutout area,
* call {@link Window#setDecorFitsSystemWindows(boolean)} with {@code false}.
*
* @see DisplayCutout
* @see WindowInsets#getDisplayCutout()
* @see #layoutInDisplayCutoutMode
@@ -3443,6 +3448,11 @@ public interface WindowManager extends ViewManager {
* In this mode, the window extends under cutouts on the all edges of the display in both
* portrait and landscape, regardless of whether the window is hiding the system bars.
*
* <p>
* Note: Android might not allow the content view to overlap the system bars in view level.
* To override this behavior and allow content to be able to extend into the cutout area,
* call {@link Window#setDecorFitsSystemWindows(boolean)} with {@code false}.
*
* @see DisplayCutout
* @see WindowInsets#getDisplayCutout()
* @see #layoutInDisplayCutoutMode