summaryrefslogtreecommitdiff
path: root/core/java/android/view/InsetsSource.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2018-11-06 14:42:04 +0100
committerJorim Jaggi <jjaggi@google.com>2018-12-21 13:05:30 +0100
commit5bb571dc403b4384111ae987ed7b44aaef76ace0 (patch)
tree9f475f0f373a0b499760fe86e96b1d95f63362f1 /core/java/android/view/InsetsSource.java
parent7fa78c545b5bd3845f3cda4bad0bd3b37b327732 (diff)
A brave new world for window insets (5/n)
Implement controlWindowInsetsAnimation Based on the leashes we have on the client, and the insets the client has requested, we are able to move the surfaces around such that the resulting insets will match what the client requested. Bug: 118118435 Change-Id: I0616e53455a6544aaf374c1b0eb10e258aced21d
Diffstat (limited to 'core/java/android/view/InsetsSource.java')
-rw-r--r--core/java/android/view/InsetsSource.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/InsetsSource.java b/core/java/android/view/InsetsSource.java
index 0cb8ad72f102..f8148a906bb3 100644
--- a/core/java/android/view/InsetsSource.java
+++ b/core/java/android/view/InsetsSource.java
@@ -70,7 +70,8 @@ public class InsetsSource implements Parcelable {
*
* @param relativeFrame The frame to calculate the insets relative to.
* @param ignoreVisibility If true, always reports back insets even if source isn't visible.
- * @return The resulting insets.
+ * @return The resulting insets. The contract is that only one side will be occupied by a
+ * source.
*/
public Insets calculateInsets(Rect relativeFrame, boolean ignoreVisibility) {
if (!ignoreVisibility && !mVisible) {