mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Fixed default font size webview
This commit is contained in:
parent
828c3995c9
commit
8e4545413f
1 changed files with 2 additions and 3 deletions
|
@ -86,9 +86,8 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
|||
|
||||
WebSettings settings = getSettings();
|
||||
if (textSize != 0) {
|
||||
int dp = Helper.pixels2dp(getContext(), textSize);
|
||||
settings.setDefaultFontSize(Math.round(dp));
|
||||
settings.setDefaultFixedFontSize(Math.round(dp));
|
||||
settings.setDefaultFontSize(Math.round(textSize));
|
||||
settings.setDefaultFixedFontSize(Math.round(textSize));
|
||||
}
|
||||
if (monospaced)
|
||||
settings.setStandardFontFamily("monospace");
|
||||
|
|
Loading…
Reference in a new issue