Search in sources :

Example 1 with ClipboardManager

use of com.fsck.k9.helper.ClipboardManager in project k-9 by k9mail.

the class MessageHeader method onAddAddressesToClipboard.

private void onAddAddressesToClipboard(Address[] addresses) {
    String addressList = Address.toString(addresses);
    ClipboardManager clipboardManager = ClipboardManager.getInstance(mContext);
    clipboardManager.setText("addresses", addressList);
    Toast.makeText(mContext, createMessage(addresses.length), Toast.LENGTH_LONG).show();
}
Also used : ClipboardManager(com.fsck.k9.helper.ClipboardManager) SpannableString(android.text.SpannableString)

Aggregations

SpannableString (android.text.SpannableString)1 ClipboardManager (com.fsck.k9.helper.ClipboardManager)1