Merge "Ensure taskbar insets for camera cutout only apply on the needed sides" into 24D1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8a85cb5c9b
@@ -944,10 +944,14 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
}
|
||||
if (landscapePhoneButtonNav) {
|
||||
mWindowLayoutParams.width = size;
|
||||
mWindowLayoutParams.paramsForRotation[getDisplay().getRotation()].width = size;
|
||||
for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) {
|
||||
mWindowLayoutParams.paramsForRotation[rot].width = size;
|
||||
}
|
||||
} else {
|
||||
mWindowLayoutParams.height = size;
|
||||
mWindowLayoutParams.paramsForRotation[getDisplay().getRotation()].height = size;
|
||||
for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) {
|
||||
mWindowLayoutParams.paramsForRotation[rot].height = size;
|
||||
}
|
||||
}
|
||||
mControllers.taskbarInsetsController.onTaskbarOrBubblebarWindowHeightOrInsetsChanged();
|
||||
notifyUpdateLayoutParams();
|
||||
|
||||
Reference in New Issue
Block a user