resolve merge conflicts of 52040c2d51 to ub-launcher3-master.

Change-Id: Ie3cf72ef11b43e2c681d6d614c668062c7e7b74c
This commit is contained in:
Tony Wickham committed 2015-10-23 12:29:44 -07:00
commit c1763b24fc
2 files changed
+17 -9

No files matched your search

+11 -9
View File
@@ -104,7 +104,6 @@ public class DeviceProfile {
private int searchBarSpaceWidthPx;
private int searchBarSpaceHeightNormalPx, searchBarSpaceHeightTallPx;
private int searchBarSpaceHeightPx; // One of the above.
private int searchBarHeight = LauncherCallbacks.SEARCH_BAR_HEIGHT_NORMAL;
public DeviceProfile(Context context, InvariantDeviceProfile inv,
Point minSize, Point maxSize,
@@ -408,13 +407,8 @@ public class DeviceProfile {
return visibleChildren;
}
public void layout(Launcher launcher) {
FrameLayout.LayoutParams lp;
boolean hasVerticalBarLayout = isVerticalBarLayout();
final boolean isLayoutRtl = Utilities.isRtl(launcher.getResources());
// Layout the search bar space
searchBarHeight = launcher.getSearchBarHeight();
// TODO(twickham): b/25154513
public void setSearchBarHeight(int searchBarHeight) {
if (searchBarHeight == LauncherCallbacks.SEARCH_BAR_HEIGHT_TALL) {
hotseatBarHeightPx = hotseatBarHeightShortPx;
searchBarSpaceHeightPx = searchBarSpaceHeightTallPx;
@@ -422,6 +416,14 @@ public class DeviceProfile {
hotseatBarHeightPx = hotseatBarHeightNormalPx;
searchBarSpaceHeightPx = searchBarSpaceHeightNormalPx;
}
}
public void layout(Launcher launcher) {
FrameLayout.LayoutParams lp;
boolean hasVerticalBarLayout = isVerticalBarLayout();
final boolean isLayoutRtl = Utilities.isRtl(launcher.getResources());
// Layout the search bar space
View searchBar = launcher.getSearchDropTargetBar();
lp = getDropTargetBarLayoutParams(hasVerticalBarLayout, searchBar, Gravity.TOP);
searchBar.setLayoutParams(lp);
@@ -542,7 +544,7 @@ public class DeviceProfile {
// Vertical drop target bar space -- The drop target bar is fixed in the layout to be on
// the left of the screen regardless of RTL
lp.gravity = Gravity.LEFT;
lp.width = searchBarSpaceHeightPx;
lp.width = searchBarSpaceHeightNormalPx;
LinearLayout targets = (LinearLayout) dropTargetBar.findViewById(R.id.drag_target_bar);
targets.setOrientation(LinearLayout.VERTICAL);