Fix bad compose input height.

fork-5.53.8
Alex Hart 2020-12-15 12:50:08 -04:00 zatwierdzone przez Alan Evans
rodzic 3983d5aca4
commit ce20dd97ff
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -81,8 +81,8 @@ public class ComposeText extends EmojiEditText {
}
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
if (!TextUtils.isEmpty(hint)) {
if (!TextUtils.isEmpty(subHint)) {
@ -92,6 +92,7 @@ public class ComposeText extends EmojiEditText {
} else {
setHint(ellipsizeToWidth(hint));
}
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}
}