From c04cbb78c35142c7758774b07e1c09637cd1adf0 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 18 Aug 2021 16:04:54 +0200 Subject: [PATCH] Small improvements --- .../main/java/eu/faircode/email/FragmentCompose.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index c936dd24b7..231fa1e258 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -743,24 +743,24 @@ public class FragmentCompose extends FragmentBase { return; ClipboardManager clipboard = - (ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE); + (ClipboardManager) v.getContext().getSystemService(Context.CLIPBOARD_SERVICE); if (clipboard == null) return; ClipData clip = ClipData.newHtmlText( - getContext().getString(R.string.title_edit_signature_text), - HtmlHelper.getText(getContext(), identity.signature), + v.getContext().getString(R.string.title_edit_signature_text), + HtmlHelper.getText(v.getContext(), identity.signature), identity.signature); clipboard.setPrimaryClip(clip); - ToastEx.makeText(getContext(), R.string.title_clipboard_copied, Toast.LENGTH_LONG).show(); + ToastEx.makeText(v.getContext(), R.string.title_clipboard_copied, Toast.LENGTH_LONG).show(); } }); ibCloseRefHint.setOnClickListener(new View.OnClickListener() { @Override - public void onClick(View view) { - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); + public void onClick(View v) { + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(v.getContext()); prefs.edit().putBoolean("compose_reference", false).apply(); grpReferenceHint.setVisibility(View.GONE); }