diff --git a/README.md b/README.md index d0e919c..d3ebadb 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,6 @@ For ionic 2/ typescript users, add the plugin with above command, then define an //do some error handling }); - .... }); } diff --git a/src/android/CorewiseFingerprintAuth.java b/src/android/CorewiseFingerprintAuth.java index 7992c62..ec89255 100644 --- a/src/android/CorewiseFingerprintAuth.java +++ b/src/android/CorewiseFingerprintAuth.java @@ -8,7 +8,6 @@ import android.util.Log; import android.view.KeyEvent; - import org.apache.cordova.CallbackContext; import org.apache.cordova.CordovaInterface; import org.apache.cordova.CordovaPlugin; @@ -16,20 +15,13 @@ import org.json.JSONArray; import org.json.JSONException; - - - public class CorewiseFingerprintAuth extends CordovaPlugin{ - - //protected MyApplication application; private HandlerThread handlerThread; private ProgressDialog progressDialog; private AsyncFingerprint asyncFingerprint; private CallbackContext callbackContext = null; - - @Override public boolean execute(String action, JSONArray args, CallbackContext cbCtx) throws JSONException { @@ -55,7 +47,6 @@ public void run() { return true; } - @Override public void initialize(CordovaInterface cordova, CordovaWebView webView) { super.initialize(cordova, webView); @@ -66,7 +57,6 @@ public void initialize(CordovaInterface cordova, CordovaWebView webView) { initData(); } - private Handler mHandler = new Handler() { @Override @@ -114,14 +104,8 @@ public void handleMessage(Message msg) { private void initData() { asyncFingerprint = new AsyncFingerprint(handlerThread.getLooper(),mHandler); - - asyncFingerprint.setFingerprintType(FingerprintAPI.BIG_FINGERPRINT_SIZE); } - - - - private void showProgressDialog(String msg) { progressDialog = new ProgressDialog(webView.getContext()); progressDialog.setMessage(msg); @@ -185,5 +169,4 @@ public void onPause(boolean multitasking) { } - }