Commented out part of code only supported in Android Nougat (7) for now
This commit is contained in:
parent
1f6bce8830
commit
f1a45ce51c
1 changed files with 4 additions and 5 deletions
|
@ -115,10 +115,9 @@ public class Compatibility {
|
|||
|
||||
@SuppressWarnings("deprecation")
|
||||
public static Spanned fromHtml(String text) {
|
||||
if (Version.sdkAboveOrEqual(Version.API24_NOUGAT_70)) {
|
||||
return Html.fromHtml(text, 0); //Html.FROM_HTML_MODE_LEGACY
|
||||
} else {
|
||||
/*if (Version.sdkAboveOrEqual(Version.API24_NOUGAT_70)) {
|
||||
return Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY);
|
||||
}*/
|
||||
return Html.fromHtml(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue