Commit a4d34519 authored by Yusuke Iwaki's avatar Yusuke Iwaki

add Emojione

parent 893a2153
...@@ -9,6 +9,7 @@ import android.widget.LinearLayout; ...@@ -9,6 +9,7 @@ import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import chat.rocket.android.widget.R; import chat.rocket.android.widget.R;
import chat.rocket.android.widget.helper.Linkify; import chat.rocket.android.widget.helper.Linkify;
import com.emojione.Emojione;
/** /**
*/ */
...@@ -49,7 +50,7 @@ public class RocketChatMessageLayout extends LinearLayout { ...@@ -49,7 +50,7 @@ public class RocketChatMessageLayout extends LinearLayout {
private void appendTextView(String text) { private void appendTextView(String text) {
TextView textView = (TextView) inflater.inflate(R.layout.message_body, this, false); TextView textView = (TextView) inflater.inflate(R.layout.message_body, this, false);
textView.setText(text); textView.setText(Emojione.shortnameToUnicode(text, false));
Linkify.markup(textView); Linkify.markup(textView);
InlineHightlighter.highlight(textView); InlineHightlighter.highlight(textView);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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