beta bugs fixed
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package ch.pizzalink.android.helper;
|
||||
|
||||
import android.text.Html;
|
||||
import android.widget.TextView;
|
||||
|
||||
public class TextHelper {
|
||||
|
||||
public static String parseDate(String pureDate, boolean shouldShowTime){
|
||||
@@ -24,4 +27,15 @@ public class TextHelper {
|
||||
|
||||
return day + "." + month + "." + year + " " + "Saat " + time;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public static void setTextFromHTML(TextView textView, String html) {
|
||||
|
||||
if (android.os.Build.VERSION.SDK_INT >= 24)
|
||||
textView.setText(Html.fromHtml(html, Html.FROM_HTML_MODE_LEGACY));
|
||||
else
|
||||
textView.setText(Html.fromHtml(html));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user