mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Fixing issue where incorrect min/max widths/heights were being reported to widgets. (Bug 10940505)
This commit is contained in:
@@ -290,7 +290,8 @@ class DeviceProfile {
|
||||
|
||||
Rect getWorkspacePadding(int orientation) {
|
||||
Rect padding = new Rect();
|
||||
if (isVerticalBarLayout()) {
|
||||
if (orientation == CellLayout.LANDSCAPE &&
|
||||
transposeLayoutWithOrientation) {
|
||||
// Pad the left and right of the workspace with search/hotseat bar sizes
|
||||
padding.set(searchBarSpaceHeightPx, edgeMarginPx,
|
||||
hotseatBarHeightPx, edgeMarginPx);
|
||||
|
||||
Reference in New Issue
Block a user