mirror of https://github.com/M66B/FairEmail.git
Fixed original messages / wide view port
This commit is contained in:
parent
96a75e8cf4
commit
42f1e43dde
|
@ -1546,13 +1546,15 @@ public class HtmlHelper {
|
||||||
|
|
||||||
static void setViewport(Document document) {
|
static void setViewport(Document document) {
|
||||||
// https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
|
// https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
|
||||||
document.head().select("meta").select("[name=viewport]").remove();
|
Elements meta = document.head().select("meta").select("[name=viewport]");
|
||||||
|
if (meta.size() > 0) {
|
||||||
|
meta.remove();
|
||||||
document.head().prependChild(document.createElement("meta")
|
document.head().prependChild(document.createElement("meta")
|
||||||
.attr("name", "viewport")
|
.attr("name", "viewport")
|
||||||
.attr("content", "width=device-width, initial-scale=1.0"));
|
.attr("content", "width=device-width, initial-scale=1.0"));
|
||||||
|
}
|
||||||
|
|
||||||
Log.i(document.head().html());
|
Log.d(document.head().html());
|
||||||
}
|
}
|
||||||
|
|
||||||
static String getLanguage(Context context, String body) {
|
static String getLanguage(Context context, String body) {
|
||||||
|
|
Loading…
Reference in New Issue