mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Fixed AMP viewport
This commit is contained in:
@@ -210,6 +210,9 @@ public class ActivityAMP extends ActivityBase {
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_stream));
|
||||
}
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean overview_mode = prefs.getBoolean("overview_mode", false);
|
||||
|
||||
String html;
|
||||
ContentResolver resolver = context.getContentResolver();
|
||||
try (InputStream is = resolver.openInputStream(uri)) {
|
||||
@@ -217,7 +220,7 @@ public class ActivityAMP extends ActivityBase {
|
||||
}
|
||||
|
||||
Document d = JsoupEx.parse(html);
|
||||
HtmlHelper.setViewport(d, false);
|
||||
HtmlHelper.setViewport(d, overview_mode);
|
||||
|
||||
for (Element script : d.select("script")) {
|
||||
String src = script.attr("src");
|
||||
|
||||
Reference in New Issue
Block a user