From 7986140d5dd01fa69061539934b6dd3b3d990b18 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 26 Feb 2020 11:09:06 +0100 Subject: [PATCH] Warm up Chrome on open link --- .../eu/faircode/email/AdapterMessage.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 3797bd93f3..6e9b42a376 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -29,6 +29,7 @@ import android.app.NotificationChannel; import android.app.NotificationManager; import android.content.ClipData; import android.content.ClipboardManager; +import android.content.ComponentName; import android.content.ContentResolver; import android.content.Context; import android.content.DialogInterface; @@ -103,6 +104,8 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.widget.PopupMenu; +import androidx.browser.customtabs.CustomTabsClient; +import androidx.browser.customtabs.CustomTabsServiceConnection; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.Group; import androidx.core.content.FileProvider; @@ -4963,6 +4966,27 @@ public class AdapterMessage extends RecyclerView.Adapter