Check the bubble bar maximum so it is not cut off.
Add check of the bubble bar highest size when setting the taskbar window size from TaskbarViewController.onRotationChanged Fixes: 407708503 Test: Manual. Use foldable device, set navigation mode to the 3 buttons. Fold the device and trigger bubble. Lock screen. Unfold. Unlock screen. The bubble remains visible. Flag: EXEMPT bugfix Change-Id: If16bf289ea394f6586d8530182db000dbcdea214
This commit is contained in:
@@ -1218,6 +1218,11 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
} else {
|
||||
taskbarWindowSize = deviceProfile.taskbarHeight + deviceProfile.getTaskbarOffsetY();
|
||||
}
|
||||
if (mBubbleControllers != null) {
|
||||
int bubbleBarMaxHeight = mBubbleControllers.bubbleBarViewController
|
||||
.getBubbleBarWithFlyoutMaximumHeight();
|
||||
taskbarWindowSize = Math.max(taskbarWindowSize, bubbleBarMaxHeight);
|
||||
}
|
||||
mActivity.setTaskbarWindowSize(taskbarWindowSize);
|
||||
mTaskbarNavButtonTranslationY.updateValue(-deviceProfile.getTaskbarOffsetY());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user