From 1b2bf000984b17b77b36621f193e13475167f20c Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Tue, 26 Jul 2016 14:27:34 -0700 Subject: [PATCH] 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 --- core/java/android/view/View.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 1fa182050c954..c90d3fb47d162 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