Commit cbbf1245 authored by Ignacio García's avatar Ignacio García Committed by Hussein

P4A-775 Fix message text displaying too small to see.

1. webSettings.setLoadWithOverviewMode(true) was being called again where it should not.
2. getScale() is deprecated and it was returning 0. So message was too small to see.
parent aa454b6c
......@@ -93,13 +93,11 @@ public class MessageWebView extends RigidWebView {
// TODO: Review alternatives. NARROW_COLUMNS is deprecated on KITKAT
// webSettings.setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS);
webSettings.setUseWideViewPort(true);
webSettings.setLoadWithOverviewMode(true);
setOverScrollMode(OVER_SCROLL_NEVER);
webSettings.setTextZoom(K9.getFontSizes().getMessageViewContentAsPercent());
setInitialScale((int) getScale());
// Disable network images by default. This is overridden by preferences.
blockNetworkData(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment