Merge "Fix shift in share sheet" into oc-mr1-dev

This commit is contained in:
Jason Monk
2017-09-06 17:50:36 +00:00
committed by Android (Google) Code Review

View File

@@ -1470,10 +1470,8 @@ public class ChooserActivity extends ResolverActivity {
}
final int oldHeight = holder.row.getLayoutParams().height;
int measuredRowHeight = holder.measuredRowHeight + holder.row.getPaddingTop()
+ holder.row.getPaddingBottom();
holder.row.getLayoutParams().height = Math.max(1,
(int) (measuredRowHeight * getRowScale(rowPosition)));
(int) (holder.measuredRowHeight * getRowScale(rowPosition)));
if (holder.row.getLayoutParams().height != oldHeight) {
holder.row.requestLayout();
}