From 7700bffc4732358a46c8b39d93bf3a7ccb7fec91 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 5 Apr 2021 21:37:01 -0700 Subject: [PATCH] Fix noisy log from sysui flag changes Bug: 144854916 Test: Logcat after sysui flag changes, ensure no tracing change logs Change-Id: I36b6b71bae08303787508ab6eb63ca989866370c --- .../quickstep/TouchInteractionService.java | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 1fb946550e..e9d2eb4632 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -239,8 +239,9 @@ public class TouchInteractionService extends Service implements PluginListener { + int lastFlags = mDeviceState.getSystemUiStateFlags(); mDeviceState.setSystemUiFlags(stateFlags); - TouchInteractionService.this.onSystemUiFlagsChanged(); + TouchInteractionService.this.onSystemUiFlagsChanged(lastFlags); }); } @@ -362,7 +363,7 @@ public class TouchInteractionService extends Service implements PluginListener