diff options
| author | 2020-04-20 12:55:00 +0800 | |
|---|---|---|
| committer | 2020-04-21 13:33:47 +0800 | |
| commit | 96cde448c25976eeb923f8ccfeaffeb3f76eec9f (patch) | |
| tree | 6f88103b4d24f14386ee0441ef78ea2466450a97 | |
| parent | 28665792a22154a7fce2f99124b9d1db57e68f34 (diff) | |
Update the description of getWaterfallInsets()
Bug: 154229434
Test: make
Change-Id: If70d09dfa96e82b4cc4d20cd9a17764ac3c5a2b7
| -rw-r--r-- | core/java/android/view/DisplayCutout.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/view/DisplayCutout.java b/core/java/android/view/DisplayCutout.java index 679c912e846f..b4863f9c6dd0 100644 --- a/core/java/android/view/DisplayCutout.java +++ b/core/java/android/view/DisplayCutout.java @@ -332,7 +332,14 @@ public final class DisplayCutout { } /** - * Return the waterfall insets. + * Returns the insets representing the curved areas of a waterfall display. + * + * A waterfall display has curved areas along the edges of the screen. Apps should be careful + * when showing UI and handling touch input in those insets because the curve may impair + * legibility and can frequently lead to unintended touch inputs. + * + * @return the insets for the curved areas of a waterfall display in pixels or {@code + * Insets.NONE} if there are no curved areas or they don't overlap with the window. */ public @NonNull Insets getWaterfallInsets() { return mWaterfallInsets; |