From 1f2cb484f94d980f7c8bae14937f81b3c579c388 Mon Sep 17 00:00:00 2001 From: kwaky Date: Wed, 10 Mar 2021 20:43:35 -0800 Subject: [PATCH] DO NOT MERGE Delete superfluous call of mInsetsController.onControlsChanged. This is already called by systemui and the redundant call causes leash access after invalidation. Bug: 179307474 Bug: 171031234 Bug: 177940325 Test: Manual Change-Id: Ie2d12fc857a8b6dd5d8ee8b57ad693c822b896a4 --- .../android/systemui/wm/DisplaySystemBarsController.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/CarSystemUI/src/com/android/systemui/wm/DisplaySystemBarsController.java b/packages/CarSystemUI/src/com/android/systemui/wm/DisplaySystemBarsController.java index bbab4388f17d3..c0b5c50b288c2 100644 --- a/packages/CarSystemUI/src/com/android/systemui/wm/DisplaySystemBarsController.java +++ b/packages/CarSystemUI/src/com/android/systemui/wm/DisplaySystemBarsController.java @@ -25,7 +25,6 @@ import android.util.SparseArray; import android.view.IDisplayWindowInsetsController; import android.view.IWindowManager; import android.view.InsetsController; -import android.view.InsetsSourceControl; import android.view.InsetsState; import android.view.WindowInsets; @@ -123,13 +122,6 @@ public class DisplaySystemBarsController extends DisplayImeController { } } - @Override - public void insetsControlChanged(InsetsState insetsState, - InsetsSourceControl[] activeControls) { - super.insetsControlChanged(insetsState, activeControls); - mInsetsController.onControlsChanged(activeControls); - } - @Override public void hideInsets(@WindowInsets.Type.InsetsType int types, boolean fromIme) { if ((types & WindowInsets.Type.ime()) == 0) {