Update CommentsMiniInfoItemHolder.java

Co-Authored-By: yausername <5203007+yausername@users.noreply.github.com>
This commit is contained in:
harshlele 2020-02-05 14:48:39 +05:30 committed by GitHub
parent bc393e6bcd
commit 21184f8755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder {
ClipboardManager clipboardManager = (ClipboardManager) itemBuilder.getContext() ClipboardManager clipboardManager = (ClipboardManager) itemBuilder.getContext()
.getSystemService(Context.CLIPBOARD_SERVICE); .getSystemService(Context.CLIPBOARD_SERVICE);
clipboardManager.setPrimaryClip(ClipData.newPlainText(null,itemContentView.getText())); clipboardManager.setPrimaryClip(ClipData.newPlainText(null,commentText));
Toast.makeText(itemBuilder.getContext(), R.string.msg_copied, Toast.LENGTH_SHORT).show(); Toast.makeText(itemBuilder.getContext(), R.string.msg_copied, Toast.LENGTH_SHORT).show();
return true; return true;