summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2016-07-26 14:27:34 -0700
committer Adrian Roos <roosa@google.com> 2016-07-26 14:27:37 -0700
commit1b2bf000984b17b77b36621f193e13475167f20c (patch)
tree9bd01adfab4a3ed4f64987782db46761e03b1040
parenta0f07728d9b706c50c79faa7fd4559de1410fcb6 (diff)
ViewRootImpl: Initialize sysui visibility
Fixes a bug where the sysui visibility flags were not dispatched when they changed if the visibility changes the first time to a zero value. Change-Id: I4d6c990ca493b144f24c75e95b4ff18c4c0a029c Fixes: 30259249
-rw-r--r--core/java/android/view/View.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 1fa182050c95..c90d3fb47d16 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -22927,7 +22927,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
/**
* Last global system UI visibility reported by the window manager.
*/
- int mGlobalSystemUiVisibility;
+ int mGlobalSystemUiVisibility = -1;
/**
* True if a view in this hierarchy has an OnSystemUiVisibilityChangeListener