Preserve top/bottom padding in PredictionRowView on updating insets.

Change-Id: Iba75902df46ff51b036d2ff117d4ab1ef2e1c0f8
This commit is contained in:
Mario Bertschler
2017-12-12 15:11:10 -08:00
parent d96072e63e
commit 9f62d13ed8

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());
}
}