mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Remove now-unnecessary thumbnail onMeasure().
This commit is contained in:
parent
6fd10042fb
commit
c9bb3dd469
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user