Fix #204: broken support for cordova-android < 7.0

This commit is contained in:
Sefa Ilkimen
2019-04-15 02:47:14 +02:00
parent 0bf39650e1
commit 620ce3f81c
3 changed files with 6 additions and 2 deletions
@@ -150,7 +150,7 @@ public class CordovaHttpPlugin extends CordovaPlugin {
private boolean setClientAuthMode(final JSONArray args, final CallbackContext callbackContext) throws JSONException {
CordovaClientAuth runnable = new CordovaClientAuth(args.getString(0), args.getString(1), this.cordova.getActivity(),
this.cordova.getContext(), this.tlsConfiguration, callbackContext);
this.cordova.getActivity().getApplicationContext(), this.tlsConfiguration, callbackContext);
cordova.getThreadPool().execute(runnable);