Merge "Apply insets to top-level providers, not just paramsForRotation" into 24D1-dev

This commit is contained in:
Tony Wickham
2024-04-06 00:01:19 +00:00
committed by Android (Google) Code Review

View File

@@ -163,6 +163,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()
}