diff options
author | tom79 <tschneider.ac@gmail.com> | 2017-06-11 14:28:29 +0200 |
---|---|---|
committer | tom79 <tschneider.ac@gmail.com> | 2017-06-11 14:28:29 +0200 |
commit | cabdfcf915d4fc7e11a7942e67c4eda18d8b411e (patch) | |
tree | 2835b6813adeb2bbed7772d85a4fac39772b7924 /app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsListAdapter.java | |
parent | 350e26d64f8e24c278f22f0ba055ea75a3e3890f (diff) |
Removes lib for Emoji
Diffstat (limited to 'app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsListAdapter.java')
-rw-r--r-- | app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsListAdapter.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsListAdapter.java index 00352f8eb..ad584ae91 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsListAdapter.java @@ -34,10 +34,10 @@ import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; +import com.emojione.Emojione; import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.ImageLoader; import com.nostra13.universalimageloader.core.display.SimpleBitmapDisplayer; -import com.vdurmont.emoji.EmojiParser; import java.util.ArrayList; import java.util.List; @@ -152,7 +152,7 @@ public class AccountsListAdapter extends BaseAdapter implements OnPostActionInte holder.account_ds.setVisibility(View.VISIBLE); } }); - holder.account_dn.setText(EmojiParser.parseToUnicode(account.getDisplay_name())); + holder.account_dn.setText(Emojione.shortnameToUnicode(account.getDisplay_name(), true)); holder.account_un.setText(String.format("@%s",account.getUsername())); holder.account_ac.setText(account.getAcct()); if( account.getDisplay_name().equals(account.getAcct())) @@ -162,6 +162,7 @@ public class AccountsListAdapter extends BaseAdapter implements OnPostActionInte if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) holder.account_ds.setText(Html.fromHtml(account.getNote(), Html.FROM_HTML_MODE_COMPACT)); else + //noinspection deprecation holder.account_ds.setText(Html.fromHtml(account.getNote())); holder.account_ds.setAutoLinkMask(Linkify.WEB_URLS); holder.account_sc.setText(String.valueOf(account.getStatuses_count())); |