remove webview zoom for the time being to fix swiping
This commit is contained in:
parent
eae76193b4
commit
24516babd7
@ -103,24 +103,23 @@ public class ArticleFragment extends Fragment implements OnClickListener {
|
|||||||
String content;
|
String content;
|
||||||
String cssOverride = "";
|
String cssOverride = "";
|
||||||
|
|
||||||
web.setBackgroundColor(0x00000000);
|
|
||||||
|
|
||||||
WebSettings ws = web.getSettings();
|
//WebSettings ws = web.getSettings();
|
||||||
|
//ws.setSupportZoom(true);
|
||||||
ws.setSupportZoom(true);
|
//ws.setBuiltInZoomControls(true);
|
||||||
ws.setBuiltInZoomControls(true);
|
|
||||||
|
|
||||||
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
|
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
|
||||||
cssOverride = "body { background : transparent; color : #e0e0e0}\n";
|
cssOverride = "body { background : black; color : #e0e0e0}\n";
|
||||||
|
web.setBackgroundColor(android.R.color.black);
|
||||||
} else {
|
} else {
|
||||||
cssOverride = "body { background : transparent; }\n";
|
cssOverride = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
content =
|
content =
|
||||||
"<html>" +
|
"<html>" +
|
||||||
"<head>" +
|
"<head>" +
|
||||||
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
|
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
|
||||||
"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
|
//"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
|
||||||
"<style type=\"text/css\">" +
|
"<style type=\"text/css\">" +
|
||||||
cssOverride +
|
cssOverride +
|
||||||
"img { max-width : 98%; height : auto; }" +
|
"img { max-width : 98%; height : auto; }" +
|
||||||
|
Loading…
Reference in New Issue
Block a user