Commit dbb7c8f1 authored by jariztia's avatar jariztia

Case the Activity gets killed by the OS while it's in the background

parent df54d51c
......@@ -302,4 +302,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