resolve merge conflicts of b9759d399b to ub-launcher3-calgary.
Change-Id: I66230c15e5eaeef316d4e2f14b85c6ff1b6e977d
This commit is contained in:
commit
c32c63c46e
3 files changed
+28
-19
No files matched your search
@@ -103,6 +103,8 @@ public class DeviceProfile {
|
||||
// QSB
|
||||
private int searchBarWidgetInternalPaddingTop, searchBarWidgetInternalPaddingBottom;
|
||||
private int searchBarTopPaddingPx;
|
||||
private int tallSearchBarNegativeTopPaddingPx, normalSearchBarTopExtraPaddingPx;
|
||||
private int searchBarTopExtraPaddingPx; // One of the above.
|
||||
private int normalSearchBarBottomPaddingPx, tallSearchBarBottomPaddingPx;
|
||||
private int searchBarBottomPaddingPx; // One of the above.
|
||||
private int normalSearchBarSpaceHeightPx, tallSearchBarSpaceHeightPx;
|
||||
@@ -216,6 +218,10 @@ public class DeviceProfile {
|
||||
R.dimen.qsb_internal_padding_top);
|
||||
searchBarWidgetInternalPaddingBottom = res.getDimensionPixelSize(
|
||||
R.dimen.qsb_internal_padding_bottom);
|
||||
normalSearchBarTopExtraPaddingPx = res.getDimensionPixelSize(
|
||||
R.dimen.dynamic_grid_search_bar_extra_top_padding);
|
||||
tallSearchBarNegativeTopPaddingPx = res.getDimensionPixelSize(
|
||||
R.dimen.dynamic_grid_search_bar_negative_top_padding_short);
|
||||
if (isTablet && !isVerticalBarLayout()) {
|
||||
searchBarTopPaddingPx = searchBarWidgetInternalPaddingTop;
|
||||
normalSearchBarBottomPaddingPx = searchBarWidgetInternalPaddingBottom +
|
||||
@@ -225,8 +231,9 @@ public class DeviceProfile {
|
||||
searchBarTopPaddingPx = searchBarWidgetInternalPaddingTop;
|
||||
normalSearchBarBottomPaddingPx = searchBarWidgetInternalPaddingBottom +
|
||||
res.getDimensionPixelSize(R.dimen.dynamic_grid_search_bar_bottom_padding);
|
||||
tallSearchBarBottomPaddingPx = searchBarWidgetInternalPaddingBottom +
|
||||
res.getDimensionPixelSize(R.dimen.dynamic_grid_search_bar_bottom_padding_short);
|
||||
tallSearchBarBottomPaddingPx = searchBarWidgetInternalPaddingBottom
|
||||
+ res.getDimensionPixelSize(
|
||||
R.dimen.dynamic_grid_search_bar_bottom_negative_padding_short);
|
||||
}
|
||||
|
||||
// Calculate the actual text height
|
||||
@@ -272,7 +279,7 @@ public class DeviceProfile {
|
||||
|
||||
/** Returns the amount of extra space to allocate to the search bar for vertical padding. */
|
||||
private int getSearchBarTotalVerticalPadding() {
|
||||
return searchBarTopPaddingPx + searchBarBottomPaddingPx;
|
||||
return searchBarTopPaddingPx + searchBarTopExtraPaddingPx + searchBarBottomPaddingPx;
|
||||
}
|
||||
|
||||
/** Returns the width and height of the search bar, ignoring any padding. */
|
||||
@@ -439,10 +446,13 @@ public class DeviceProfile {
|
||||
hotseatBarHeightPx = shortHotseatBarHeightPx;
|
||||
searchBarSpaceHeightPx = tallSearchBarSpaceHeightPx;
|
||||
searchBarBottomPaddingPx = tallSearchBarBottomPaddingPx;
|
||||
searchBarTopExtraPaddingPx = isPhone ? tallSearchBarNegativeTopPaddingPx
|
||||
: normalSearchBarTopExtraPaddingPx;
|
||||
} else {
|
||||
hotseatBarHeightPx = normalHotseatBarHeightPx;
|
||||
searchBarSpaceHeightPx = normalSearchBarSpaceHeightPx;
|
||||
searchBarBottomPaddingPx = normalSearchBarBottomPaddingPx;
|
||||
searchBarTopExtraPaddingPx = normalSearchBarTopExtraPaddingPx;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -457,6 +467,7 @@ public class DeviceProfile {
|
||||
lp = getDropTargetBarLayoutParams(hasVerticalBarLayout, searchBar, Gravity.TOP);
|
||||
lp.width = searchBarBounds.width();
|
||||
lp.height = searchBarBounds.height();
|
||||
lp.topMargin = searchBarTopExtraPaddingPx;
|
||||
searchBar.setLayoutParams(lp);
|
||||
|
||||
// Layout the app info bar space
|
||||
|
||||
Reference in new issue
Block a user