Commit 1cdbf871 authored by Eddy Verbruggen's avatar Eddy Verbruggen Committed by GitHub

Merge pull request #346 from kunder-lab/master

Set callbackContext onRestoreStateForActivityResult
parents d43964f0 56964e58
......@@ -15,6 +15,7 @@ import org.json.JSONObject;
import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
......@@ -302,4 +303,13 @@ public class BarcodeScanner extends CordovaPlugin {
* This plugin launches an external Activity when the camera is opened, so we
* need to implement the save/restore API in case the Activity gets killed
* by the OS while it's in the background.
public void onRestoreStateForActivityResult(Bundle state, CallbackContext callbackContext) {
this.callbackContext = callbackContext;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment