mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Never execute Javascript
This commit is contained in:
parent
19183b2482
commit
20b1303f8c
2 changed files with 3 additions and 2 deletions
|
@ -1401,7 +1401,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
.show();
|
||||
}
|
||||
|
||||
@SuppressLint({"SetJavaScriptEnabled", "ClickableViewAccessibility"})
|
||||
//@SuppressLint({"SetJavaScriptEnabled"})
|
||||
private void onShowHtmlConfirmed(final TupleMessageEx message) {
|
||||
properties.setValue("html", message.id, true);
|
||||
btnHtml.setVisibility(View.GONE);
|
||||
|
@ -1436,7 +1436,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
webView.loadUrl("about:blank");
|
||||
|
||||
WebSettings settings = webView.getSettings();
|
||||
settings.setJavaScriptEnabled(true);
|
||||
//settings.setJavaScriptEnabled(true);
|
||||
settings.setUseWideViewPort(true);
|
||||
settings.setLoadWithOverviewMode(true);
|
||||
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING);
|
||||
|
|
|
@ -449,6 +449,7 @@
|
|||
android:text="@string/title_advanced_tracking_hint"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textStyle="italic"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/swTracking" />
|
||||
|
|
Loading…
Reference in a new issue