Removing unnecessary code

- The code was existing before we added onRecentsAnimationStateChanged
  earlier.  But none of the other callers call this method with
  barWindow=NAV_BAR so this code was previously not even getting hit.
  In particular, touchAutoDim is already triggered in the nav bar layout
  touch handling, and the volume panel already listens for touch outside
  so all this does is trigger unnecessary animations (volume
  tries to animate even when not showing, and we don't dim the gesture
  bar since we have the sampling).

Change-Id: I0bb309e1ddb593d01ce8f5fcc9622753324cdd09
This commit is contained in:
Winson Chung
2020-07-16 19:08:35 +00:00
parent f277044b70
commit cda60ac3f9

View File

@@ -2477,7 +2477,6 @@ public class StatusBar extends SystemUI implements DemoMode,
private final Runnable mCheckBarModes = this::checkBarModes;
public void setInteracting(int barWindow, boolean interacting) {
final boolean changing = ((mInteractingWindows & barWindow) != 0) != interacting;
mInteractingWindows = interacting
? (mInteractingWindows | barWindow)
: (mInteractingWindows & ~barWindow);
@@ -2486,11 +2485,6 @@ public class StatusBar extends SystemUI implements DemoMode,
} else {
mAutoHideController.resumeSuspendedAutoHide();
}
// manually dismiss the volume panel when interacting with the nav bar
if (changing && interacting && barWindow == StatusBarManager.WINDOW_NAVIGATION_BAR) {
mNavigationBarController.touchAutoDim(mDisplayId);
dismissVolumeDialog();
}
checkBarModes();
}