Apply insets to top-level providers, not just paramsForRotation

Bug: 329012507
Flag: none
Test: trigger assistant, ensure bottom insets are removed in
gesture nav mode; also verify IME inset override correctly
applies in 3 button mode

Change-Id: I823d0d360a7e3b41cc291f6949d9371e0dc32efb
This commit is contained in:
Tony Wickham
2024-03-27 20:01:08 +00:00
parent 8944afda32
commit f95a6b73e5
@@ -162,6 +162,10 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas
setProviderInsets(provider, layoutParams.gravity, rotation)
}
}
// Also set the parent providers (i.e. not in paramsForRotation).
for (provider in windowLayoutParams.providedInsets) {
setProviderInsets(provider, windowLayoutParams.gravity, context.display.rotation)
}
context.notifyUpdateLayoutParams()
}