Fix bad compose input height.
This commit is contained in:
parent
3983d5aca4
commit
ce20dd97ff
1 changed files with 3 additions and 2 deletions
|
@ -81,8 +81,8 @@ public class ComposeText extends EmojiEditText {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||||
super.onLayout(changed, left, top, right, bottom);
|
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(hint)) {
|
if (!TextUtils.isEmpty(hint)) {
|
||||||
if (!TextUtils.isEmpty(subHint)) {
|
if (!TextUtils.isEmpty(subHint)) {
|
||||||
|
@ -92,6 +92,7 @@ public class ComposeText extends EmojiEditText {
|
||||||
} else {
|
} else {
|
||||||
setHint(ellipsizeToWidth(hint));
|
setHint(ellipsizeToWidth(hint));
|
||||||
}
|
}
|
||||||
|
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue