mirror of https://github.com/M66B/FairEmail.git
Set WebView minimum text size
This commit is contained in:
parent
c5c8d36370
commit
7782201955
|
@ -1448,7 +1448,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
|
|
||||||
final WebView webView = (WebView) vwBody;
|
final WebView webView = (WebView) vwBody;
|
||||||
webView.setBackgroundColor(Color.TRANSPARENT);
|
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);
|
String html = properties.getHtml(message.id);
|
||||||
if (TextUtils.isEmpty(html)) {
|
if (TextUtils.isEmpty(html)) {
|
||||||
|
|
Loading…
Reference in New Issue