mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
* commit 'd47807d7a97d4ab555b2f9be882591c08955d699': Add widget size options for QSB.
This commit is contained in:
@@ -250,7 +250,7 @@ public class DeviceProfile {
|
||||
/** Returns the search bar bounds in the current orientation */
|
||||
public Rect getSearchBarBounds(boolean isLayoutRtl) {
|
||||
Rect bounds = new Rect();
|
||||
if (isLandscape && transposeLayoutWithOrientation) {
|
||||
if (isVerticalBarLayout()) {
|
||||
if (isLayoutRtl) {
|
||||
bounds.set(availableWidthPx - searchBarSpaceHeightPx, edgeMarginPx,
|
||||
availableWidthPx, availableHeightPx - edgeMarginPx);
|
||||
@@ -296,7 +296,7 @@ public class DeviceProfile {
|
||||
Rect getWorkspacePadding(boolean isLayoutRtl) {
|
||||
Rect searchBarBounds = getSearchBarBounds(isLayoutRtl);
|
||||
Rect padding = new Rect();
|
||||
if (isLandscape && transposeLayoutWithOrientation) {
|
||||
if (isVerticalBarLayout()) {
|
||||
// Pad the left and right of the workspace with search/hotseat bar sizes
|
||||
if (isLayoutRtl) {
|
||||
padding.set(hotseatBarHeightPx, edgeMarginPx,
|
||||
@@ -332,7 +332,7 @@ public class DeviceProfile {
|
||||
}
|
||||
|
||||
private int getWorkspacePageSpacing(boolean isLayoutRtl) {
|
||||
if ((isLandscape && transposeLayoutWithOrientation) || isLargeTablet) {
|
||||
if (isVerticalBarLayout() || isLargeTablet) {
|
||||
// In landscape mode the page spacing is set to the default.
|
||||
return defaultPageSpacingPx;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user