diff options
author | Adrian Roos <roosa@google.com> | 2015-05-12 13:33:25 -0700 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2015-05-12 14:12:40 -0700 |
commit | 389beec68d09883112ee5ef88f0b2fa2aa369824 (patch) | |
tree | 046a5dcc6d9448bf7030e8fd4e1fe755eb4769df /services/core/java/com/android/server/wm | |
parent | 389d5ac6ac974f171c12eb608eb8a3e2cad120f8 (diff) | |
download | frameworks_base-389beec68d09883112ee5ef88f0b2fa2aa369824.zip frameworks_base-389beec68d09883112ee5ef88f0b2fa2aa369824.tar.gz frameworks_base-389beec68d09883112ee5ef88f0b2fa2aa369824.tar.bz2 |
Only dispatch systemUiVisibility when it actually changes
Bug: 19000727
Change-Id: I9302746281188186d18256d45fee681bd2ab50d5
Diffstat (limited to 'services/core/java/com/android/server/wm')
-rw-r--r-- | services/core/java/com/android/server/wm/WindowManagerService.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java index 06d3b22..57bad51 100644 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java @@ -512,7 +512,10 @@ public class WindowManagerService extends IWindowManager.Stub int mLayoutSeq = 0; + // Last systemUiVisibility we received from status bar. int mLastStatusBarVisibility = 0; + // Last systemUiVisibility we dispatched to windows. + int mLastDispatchedSystemUiVisibility = 0; // State while inside of layoutAndPlaceSurfacesLocked(). boolean mFocusMayChange; @@ -10955,6 +10958,10 @@ public class WindowManagerService extends IWindowManager.Stub // TOOD(multidisplay): StatusBar on multiple screens? void updateStatusBarVisibilityLocked(int visibility) { + if (mLastDispatchedSystemUiVisibility == visibility) { + return; + } + mLastDispatchedSystemUiVisibility = visibility; mInputManager.setSystemUiVisibility(visibility); final WindowList windows = getDefaultWindowListLocked(); final int N = windows.size(); |