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
This commit is contained in:
kwaky
2021-03-10 20:43:35 -08:00
parent 64ab91ef98
commit 1f2cb484f9

View File

@@ -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) {