Merge "Preserve top/bottom padding in PredictionRowView on updating insets." into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2017-12-13 17:22:08 +00:00
committed by Android (Google) Code Review

View File

@@ -674,8 +674,9 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
recyclerView.setPadding(padding.left, paddingTop, padding.right, padding.bottom);
}
if (isHeaderVisible()) {
mHeader.getPredictionRow()
.setPadding(padding.left, 0 , padding.right, 0);
PredictionRowView prv = mHeader.getPredictionRow();
prv.setPadding(padding.left, prv.getPaddingTop() , padding.right,
prv.getPaddingBottom());
}
}