beta bugs fixed

This commit is contained in:
cimenmus
2017-10-28 15:22:27 +03:00
parent 454e06607a
commit 5d5b9c5af7
21 changed files with 229 additions and 476 deletions

View File

@@ -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));
}
}