mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Change rule so that multi-window labels are shown if there is space.
ie. Taimen has enough room to show the labels in mw mode. Bug: 65778773 Change-Id: If585f3f975b44d17ea6e07f23c50758998bbb564
This commit is contained in:
@@ -277,8 +277,12 @@ public class DeviceProfile {
|
||||
DeviceProfile profile = new DeviceProfile(context, inv, mwSize, mwSize, mwSize.x, mwSize.y,
|
||||
isLandscape);
|
||||
|
||||
// Hide labels on the workspace.
|
||||
profile.adjustToHideWorkspaceLabels();
|
||||
// If there isn't enough vertical cell padding with the labels displayed, hide the labels.
|
||||
float workspaceCellPaddingY = profile.getCellSize().y - profile.iconSizePx
|
||||
- iconDrawablePaddingPx - profile.iconTextSizePx;
|
||||
if (workspaceCellPaddingY < profile.iconDrawablePaddingPx * 2) {
|
||||
profile.adjustToHideWorkspaceLabels();
|
||||
}
|
||||
|
||||
// We use these scales to measure and layout the widgets using their full invariant profile
|
||||
// sizes and then draw them scaled and centered to fit in their multi-window mode cellspans.
|
||||
|
||||
Reference in New Issue
Block a user