mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Do not show a Toast on clipboard text
Fixes https://github.com/termux/termux-app/issues/149.
This commit is contained in:
parent
c26315185f
commit
0714e435cb
1 changed files with 0 additions and 1 deletions
|
|
@ -397,7 +397,6 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
|||
@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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue