Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Corrected errors in share component.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikas Vaibhav committed Jan 7, 2014
1 parent ad81517 commit 69e0121
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions share/Share.java
Expand Up @@ -15,7 +15,6 @@
import org.apache.cordova.PluginResult;
import org.apache.cordova.CallbackContext;

@SuppressWarnings("deprecation")
public class Share extends CordovaPlugin {

@Override
Expand All @@ -37,10 +36,10 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackId
doEmailIntent(subject, email, cc, bcc, text, chooser);
}

callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK));
callbackId.sendPluginResult(new PluginResult(PluginResult.Status.OK));
return true;
} catch (JSONException e) {
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
callbackId.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
return true;
}
}
Expand Down

0 comments on commit 69e0121

Please sign in to comment.