commit | 05e967820dc71286b743294af0e80e2939ff9738 | [log] [tgz] |
---|---|---|
author | Adam Powell <adamp@google.com> | Thu Jun 04 12:38:13 2015 -0700 |
committer | Adam Powell <adamp@google.com> | Thu Jun 04 12:38:13 2015 -0700 |
tree | 380ff2602f1735a1ab448d83ef2f6b08a09eaaf3 | |
parent | e50b091df9586c5c41d219ffb0c41fa3f893c329 [diff] [blame] |
Make WindowInsets#hasInsets check for stable insets as well Bug 20091509 Change-Id: Ia7dda5ab94a0904277c1078f3f73a59a735860d8
diff --git a/core/java/android/view/WindowInsets.java b/core/java/android/view/WindowInsets.java index 9e0719d..997e7e8 100644 --- a/core/java/android/view/WindowInsets.java +++ b/core/java/android/view/WindowInsets.java
@@ -251,7 +251,7 @@ * @return true if any inset values are nonzero */ public boolean hasInsets() { - return hasSystemWindowInsets() || hasWindowDecorInsets(); + return hasSystemWindowInsets() || hasWindowDecorInsets() || hasStableInsets(); } /**