Refactoring

This commit is contained in:
M66B
2023-11-28 12:29:08 +01:00
parent 7036d3b143
commit 66b5971847
5 changed files with 9 additions and 9 deletions

View File

@@ -116,7 +116,6 @@ import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.Group;
import androidx.core.app.ShareCompat;
import androidx.core.content.ContextCompat;
import androidx.core.content.FileProvider;
import androidx.core.content.pm.ShortcutInfoCompat;
import androidx.core.graphics.ColorUtils;
import androidx.core.text.method.LinkMovementMethodCompat;
@@ -146,7 +145,6 @@ import androidx.webkit.WebViewFeature;
import com.google.android.material.snackbar.Snackbar;
import org.json.JSONObject;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
@@ -3170,7 +3168,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (json_ld)
for (Element struct : document.select("script[type=application/ld+json]"))
try {
document.body().append(new StructuredEmail(struct.html()).getHtml(context));
document.body().append(new JsonLd(struct.html()).getHtml(context));
} catch (Throwable ex) {
Log.w(ex);
}