Set WebView minimum text size

This commit is contained in:
M66B 2019-05-02 09:57:35 +02:00
parent c5c8d36370
commit 7782201955
1 changed files with 5 additions and 1 deletions

View File

@ -1448,7 +1448,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
final WebView webView = (WebView) vwBody;
webView.setBackgroundColor(Color.TRANSPARENT);
webView.getSettings().setLoadsImagesAutomatically(show_images);
WebSettings settings = webView.getSettings();
settings.setDefaultFontSize(Math.round(textSize));
settings.setDefaultFixedFontSize(Math.round(textSize));
settings.setLoadsImagesAutomatically(show_images);
String html = properties.getHtml(message.id);
if (TextUtils.isEmpty(html)) {