diff --git a/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java b/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java index 484bd2c..d3717f4 100644 --- a/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java +++ b/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java @@ -105,7 +105,9 @@ public class USBCameraManager{ startPreview(cameraView, new AbstractUVCCameraHandler.OnPreViewResultListener() { @Override public void onPreviewResult(boolean isConnected) { - + if(listener != null){ + listener.onConnectDev(device,isConnected); + } } }); }