You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using other lib(photo editor), it's using onActivityResult to get the image, but the module onActivityResult triggered + documentScanner = null => app crashed
Please fix like this to avoid crash
private ActivityEventListener activityEventListener = new BaseActivityEventListener() {
@Override
public void onActivityResult(
final Activity activity,
final int requestCode,
final int resultCode,
final Intent intent) {
// trigger callbacks (success, cancel, error)
if (requestCode == DOCUMENT_SCAN_REQUEST) {
if(documentScanner != null){
documentScanner.handleDocumentScanIntentResult(
new ActivityResult(resultCode, intent)
);
}
}
}
};
The text was updated successfully, but these errors were encountered:
Hi, I am using other lib(photo editor), it's using onActivityResult to get the image, but the module onActivityResult triggered + documentScanner = null => app crashed
Please fix like this to avoid crash
The text was updated successfully, but these errors were encountered: