mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-27 22:28:29 +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);
|
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
|
@Override
|
||||||
public void setFocusable(boolean focusable) {
|
public void setFocusable(boolean focusable) {
|
||||||
thumbnail.setFocusable(focusable);
|
thumbnail.setFocusable(focusable);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user