From be98a7b58eec5487eedd9674f5a3d83794f574b3 Mon Sep 17 00:00:00 2001 From: serso Date: Thu, 7 Jan 2016 12:14:19 +0100 Subject: [PATCH] Html.fromHtml is removed from CalculatorDisplayView --- .../android/calculator/AndroidCalculatorDisplayView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java b/app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java index 1418783b..473634e7 100644 --- a/app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java +++ b/app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java @@ -27,7 +27,6 @@ import android.content.SharedPreferences; import android.os.Handler; import android.preference.PreferenceManager; import android.support.v4.app.FragmentActivity; -import android.text.Html; import android.util.AttributeSet; import android.util.TypedValue; @@ -156,7 +155,7 @@ public class AndroidCalculatorDisplayView extends AutoResizeTextView implements try { final TextProcessorEditorResult processedText = textHighlighter.process(text); text = processedText.toString(); - result = Html.fromHtml(text); + result = processedText.getCharSequence(); } catch (CalculatorParseException e) { result = text; }