Skip to content

Commit

Permalink
WlHelper: Clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
green-green-avk committed Jan 11, 2022
1 parent 98b862f commit 195c3bf
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,8 @@ public void onFromXClipboard(final View view) {
return;
}
if ("text/plain".equals(ct.getMimeType())) {
final String text;
try {
final Charset cs = ct.getCharset();
text = new String(data, cs != null ? cs : Misc.UTF8);
} catch (final UnsupportedCharsetException e) {
return;
}
final Charset cs = ct.getCharset();
final String text = new String(data, cs != null ? cs : Misc.UTF8);
UiUtils.toClipboard(GraphicsConsoleActivity.this, text);
}
}));
Expand Down

0 comments on commit 195c3bf

Please sign in to comment.