Skip to content

Commit

Permalink
Do not show a Toast on clipboard text
Browse files Browse the repository at this point in the history
Fixes termux#149.
  • Loading branch information
fornwall committed May 15, 2017
1 parent 7a7c49f commit 912380c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/src/main/java/com/termux/app/TermuxActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ public void onSessionFinished(final TerminalSession finishedSession) {
@Override
public void onClipboardText(TerminalSession session, String text) {
if (!mIsVisible) return;
showToast("Clipboard:\n\"" + text + "\"", false);
ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
clipboard.setPrimaryClip(new ClipData(null, new String[]{"text/plain"}, new ClipData.Item(text)));
}
Expand Down

0 comments on commit 912380c

Please sign in to comment.