diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index dc7a7052f8..40b92c45e8 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -58,6 +58,7 @@ import android.provider.CalendarContract; import android.provider.ContactsContract; import android.provider.MediaStore; import android.provider.Settings; +import android.text.Html; import android.text.Layout; import android.text.Spannable; import android.text.SpannableString; @@ -5839,6 +5840,7 @@ public class AdapterMessage extends RecyclerView.Adapter" + Html.escapeHtml(title) + ""; + + Intent intent = new Intent(); + intent.setAction(Intent.ACTION_SEND); + intent.setType("text/plain"); + intent.putExtra(Intent.EXTRA_TEXT, link); + intent.putExtra(Intent.EXTRA_HTML_TEXT, html); + context.startActivity(intent); + } + private void onMenuPin(TupleMessageEx message) { View view = LayoutInflater.from(context).inflate(R.layout.dialog_shortcut_label, null); EditText etLabel = view.findViewById(R.id.etLabel); diff --git a/app/src/main/java/eu/faircode/email/EntityMessage.java b/app/src/main/java/eu/faircode/email/EntityMessage.java index e924318adc..23db7be301 100644 --- a/app/src/main/java/eu/faircode/email/EntityMessage.java +++ b/app/src/main/java/eu/faircode/email/EntityMessage.java @@ -269,6 +269,9 @@ public class EntityMessage implements Serializable { } String getLink() { + // adb shell pm set-app-links --package eu.faircode.email 0 all + // adb shell pm verify-app-links --re-verify eu.faircode.email + // adb shell pm get-app-links eu.faircode.email return "https://link.fairemail.net/#" + id; } diff --git a/app/src/main/res/menu/popup_message_more.xml b/app/src/main/res/menu/popup_message_more.xml index 5a2b7976cb..90456f7eba 100644 --- a/app/src/main/res/menu/popup_message_more.xml +++ b/app/src/main/res/menu/popup_message_more.xml @@ -104,6 +104,11 @@ android:icon="@drawable/twotone_share_24" android:title="@string/title_share" /> + + Full screen Force light theme Share + Share link + Open message ZIP Add to calendar Add shortcut