From 3c995ec3d8efd493349281af8a65286f74d3cf70 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Jan 2020 20:04:49 +0100 Subject: [PATCH] Added button to copy link to clipboard --- .../eu/faircode/email/AdapterMessage.java | 19 ++++++++++++++++++- .../res/drawable/baseline_bookmarks_24.xml | 10 ++++++++++ app/src/main/res/layout/dialog_open_link.xml | 10 ++++++++++ app/src/main/res/values/strings.xml | 2 ++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/baseline_bookmarks_24.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 71f784446a..1a1098c116 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -27,6 +27,8 @@ import android.app.Dialog; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; +import android.content.ClipData; +import android.content.ClipboardManager; import android.content.ContentResolver; import android.content.Context; import android.content.DialogInterface; @@ -4627,7 +4629,7 @@ public class AdapterMessage extends RecyclerView.Adapter + + diff --git a/app/src/main/res/layout/dialog_open_link.xml b/app/src/main/res/layout/dialog_open_link.xml index efc172453f..0a95821c8c 100644 --- a/app/src/main/res/layout/dialog_open_link.xml +++ b/app/src/main/res/layout/dialog_open_link.xml @@ -30,6 +30,16 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvCaption" /> + + Enabled Executing Completed + Copy to clipboard + Copied to clipboard Ask what to do Do not ask this again Do not ask this again for %1$s