From c1b912c76cf08a00cb5a9d9f6d716927ebc9e826 Mon Sep 17 00:00:00 2001 From: stom79 Date: Fri, 12 Oct 2018 17:53:06 +0200 Subject: [PATCH] Improve draft restore --- .../etalab/mastodon/activities/TootActivity.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java b/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java index ab198e764..28fa5cd64 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java @@ -1919,22 +1919,14 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount //Sensitive content toot_sensitive.setChecked(status.isSensitive()); if( status.getSpoiler_text() != null && status.getSpoiler_text().length() > 0 ){ - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) - toot_cw_content.setText(Html.fromHtml(status.getSpoiler_text(), Html.FROM_HTML_MODE_LEGACY)); - else - //noinspection deprecation - toot_cw_content.setText(Html.fromHtml(status.getSpoiler_text())); + toot_cw_content.setText(status.getSpoiler_text()); toot_cw_content.setVisibility(View.VISIBLE); }else { toot_cw_content.setText(""); toot_cw_content.setVisibility(View.GONE); } - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) - toot_content.setText(Html.fromHtml(content, Html.FROM_HTML_MODE_LEGACY)); - else - //noinspection deprecation - toot_content.setText(Html.fromHtml(content)); + toot_content.setText(content); toot_space_left.setText(String.valueOf(toot_content.length())); toot_content.setSelection(toot_content.getText().length()); switch (status.getVisibility()){