From cb8744f74772e4eb19786a905ba923f629a8f649 Mon Sep 17 00:00:00 2001 From: Jon Maim Date: Fri, 12 Jun 2015 17:22:20 +0530 Subject: [PATCH] [android] remove MIMETYPE_TEXT_PLAIN check This is more like a question instead of a PR. Can we safely remove this check? Indeed, it makes copy/pasting from HTML emails to work. --- src/android/Clipboard.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/android/Clipboard.java b/src/android/Clipboard.java index 438ebc1..019bd8e 100644 --- a/src/android/Clipboard.java +++ b/src/android/Clipboard.java @@ -37,10 +37,6 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, e.toString())); } } else if (action.equals(actionPaste)) { - if (!clipboard.getPrimaryClipDescription().hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN)) { - callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.NO_RESULT)); - } - try { ClipData.Item item = clipboard.getPrimaryClip().getItemAt(0); String text = item.getText().toString();