mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-17 22:43:33 +02:00
Removed custom rendering as experiment
This commit is contained in:
@@ -245,7 +245,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
private boolean authentication;
|
||||
private boolean language_detection;
|
||||
private static boolean debug;
|
||||
private boolean experiments;
|
||||
|
||||
private boolean gotoTop = false;
|
||||
private boolean firstClick = false;
|
||||
@@ -1913,17 +1912,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
quote.html("…");
|
||||
}
|
||||
|
||||
// Add debug info
|
||||
if (debug && !experiments) {
|
||||
document.outputSettings().prettyPrint(true).outline(true).indentAmount(1);
|
||||
String[] lines = document.html().split("\\r?\\n");
|
||||
for (int i = 0; i < lines.length; i++)
|
||||
lines[i] = Html.escapeHtml(lines[i]);
|
||||
Element pre = document.createElement("pre");
|
||||
pre.html(TextUtils.join("<br>", lines));
|
||||
document.body().appendChild(pre);
|
||||
}
|
||||
|
||||
// Draw images
|
||||
Spanned spanned = HtmlHelper.fromDocument(context, document, new Html.ImageGetter() {
|
||||
@Override
|
||||
@@ -4647,7 +4635,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
this.language_detection = prefs.getBoolean("language_detection", false);
|
||||
|
||||
debug = prefs.getBoolean("debug", false);
|
||||
this.experiments = prefs.getBoolean("experiments", false);
|
||||
|
||||
DiffUtil.ItemCallback<TupleMessageEx> callback = new DiffUtil.ItemCallback<TupleMessageEx>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user