mirror of https://github.com/M66B/FairEmail.git
Small improvements
This commit is contained in:
parent
b8d30297e5
commit
c04cbb78c3
|
@ -743,24 +743,24 @@ public class FragmentCompose extends FragmentBase {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ClipboardManager clipboard =
|
ClipboardManager clipboard =
|
||||||
(ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE);
|
(ClipboardManager) v.getContext().getSystemService(Context.CLIPBOARD_SERVICE);
|
||||||
if (clipboard == null)
|
if (clipboard == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ClipData clip = ClipData.newHtmlText(
|
ClipData clip = ClipData.newHtmlText(
|
||||||
getContext().getString(R.string.title_edit_signature_text),
|
v.getContext().getString(R.string.title_edit_signature_text),
|
||||||
HtmlHelper.getText(getContext(), identity.signature),
|
HtmlHelper.getText(v.getContext(), identity.signature),
|
||||||
identity.signature);
|
identity.signature);
|
||||||
clipboard.setPrimaryClip(clip);
|
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() {
|
ibCloseRefHint.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View v) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(v.getContext());
|
||||||
prefs.edit().putBoolean("compose_reference", false).apply();
|
prefs.edit().putBoolean("compose_reference", false).apply();
|
||||||
grpReferenceHint.setVisibility(View.GONE);
|
grpReferenceHint.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue