Commit 6f5d0e5a authored by Tiago Cunha's avatar Tiago Cunha

Fixed empty space

parent 4bfa9448
...@@ -75,6 +75,10 @@ public class RocketChatMessageLayout extends LinearLayout { ...@@ -75,6 +75,10 @@ public class RocketChatMessageLayout extends LinearLayout {
} }
private void appendTextView(String text) { private void appendTextView(String text) {
if (TextUtils.isEmpty(text)) {
return;
}
TextView textView = (TextView) inflater.inflate(R.layout.message_body, this, false); TextView textView = (TextView) inflater.inflate(R.layout.message_body, this, false);
textView.setText(Emojione.shortnameToUnicode(text, false)); textView.setText(Emojione.shortnameToUnicode(text, false));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment