Long click headers to share HTML

This commit is contained in:
M66B 2022-01-16 10:10:31 +01:00
parent 4ccfba2f76
commit cc8b6a05d8
1 changed files with 5 additions and 0 deletions

View File

@ -943,6 +943,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibRule.setOnClickListener(this);
ibUnsubscribe.setOnClickListener(this);
ibHeaders.setOnClickListener(this);
ibHeaders.setOnLongClickListener(this);
ibPrint.setOnClickListener(this);
ibPin.setOnClickListener(this);
ibShare.setOnClickListener(this);
@ -1045,6 +1046,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibRule.setOnClickListener(null);
ibUnsubscribe.setOnClickListener(null);
ibHeaders.setOnClickListener(null);
ibHeaders.setOnLongClickListener(null);
ibPrint.setOnClickListener(null);
ibPin.setOnClickListener(null);
ibShare.setOnClickListener(null);
@ -3756,6 +3758,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
DeepL.FragmentDialogDeepL fragment = new DeepL.FragmentDialogDeepL();
fragment.show(parentFragment.getParentFragmentManager(), "deepl:configure");
return true;
} else if (id == R.id.ibHeaders) {
onMenuShareHtml(message);
return true;
} else if (id == R.id.ibFull) {
boolean full = properties.getValue("full", message.id);
if (!full) {