Exemple #1
0
  private void copyText() {

    Broadcast broadcast = mBroadcastAdapter.getBroadcast();
    if (broadcast == null) {
      ToastUtils.show(R.string.broadcast_copy_text_not_loaded, this);
      return;
    }

    ClipboardUtils.copyText(broadcast.getClipboradLabel(), broadcast.getClipboardText(this), this);
  }
Exemple #2
0
 @Override
 public void onCopyCommentText(Comment comment) {
   ClipboardUtils.copyText(comment.getClipboardLabel(), comment.getClipboardText(this), this);
 }