diff options
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 9bdfcf41b..a052fe630 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -588,7 +588,7 @@ public class DeviceProfile { if (isTablet() && !isVerticalBarLayout()) { return searchBarVisible ? 4 * edgeMarginPx : 0; } else { - return searchBarVisible ? 2 * edgeMarginPx : 0; + return searchBarVisible ? edgeMarginPx : 0; } } @@ -811,9 +811,13 @@ public class DeviceProfile { lp.width = searchBarSpaceWidthPx; lp.height = searchBarSpaceHeightPx; searchBar.setPadding( - 2 * edgeMarginPx, + edgeMarginPx, getSearchBarTopOffset(), - 2 * edgeMarginPx, 0); + edgeMarginPx, edgeMarginPx); + } + if (launcher.mSearchWidgetId >= 0) { + // remove padding on widget + searchBar.setPadding(0, 0, 0, 0); } searchBar.setLayoutParams(lp); |