Remove now-unnecessary thumbnail onMeasure().

This commit is contained in:
Greyson Parrelli 2018-07-20 16:16:19 -07:00
parent 6fd10042fb
commit c9bb3dd469

View File

@ -112,16 +112,6 @@ public class ConversationItemThumbnail extends FrameLayout {
canvas.drawPath(corners, outlinePaint);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
if (getMeasuredWidth() != thumbnail.getMeasuredWidth()) {
getLayoutParams().width = shade.getLayoutParams().width = thumbnail.getMeasuredWidth();
measure(widthMeasureSpec, heightMeasureSpec);
}
}
@Override
public void setFocusable(boolean focusable) {
thumbnail.setFocusable(focusable);