From 1f6bce8830fb102c6dd270ea1cd62f12d4dc97f4 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 3 Aug 2016 10:05:46 +0200 Subject: [PATCH] Fix compil error for those who don't have SDK 24 installed yet --- README | 2 +- src/org/linphone/compatibility/Compatibility.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 21dbfcf28..e2269f90d 100644 --- a/README +++ b/README @@ -7,7 +7,7 @@ COMPILATION INSTRUCTIONS To build liblinphone for Android, you must: ------------------------------------------- -0) download the Android sdk (API 24) with platform-tools and tools updated to latest revision, then add both 'tools' and 'platform-tools' folders in your path. +0) download the Android sdk (API 23 at least) with platform-tools and tools updated to latest revision, then add both 'tools' and 'platform-tools' folders in your path. 1) download the Android ndk (version r11c or 12b) from google and add it to your path (no symlink !!!). 2) install yasm, nasm, ant, python, cmake and vim-common On 64 bits linux systems you'll need the ia32-libs package diff --git a/src/org/linphone/compatibility/Compatibility.java b/src/org/linphone/compatibility/Compatibility.java index b37e784b4..4673f18f8 100644 --- a/src/org/linphone/compatibility/Compatibility.java +++ b/src/org/linphone/compatibility/Compatibility.java @@ -116,7 +116,7 @@ public class Compatibility { @SuppressWarnings("deprecation") public static Spanned fromHtml(String text) { if (Version.sdkAboveOrEqual(Version.API24_NOUGAT_70)) { - return Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY); + return Html.fromHtml(text, 0); //Html.FROM_HTML_MODE_LEGACY } else { return Html.fromHtml(text); }