From 21c2c2f45babd940d3f38e5c44e5ad26b01daced Mon Sep 17 00:00:00 2001 From: jiangdongguo <765067602@qq.com> Date: Sat, 11 Nov 2017 20:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Camera=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=B5=81=E7=A8=8B=EF=BC=8C=E4=BD=BFCamera?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BD=BF=E7=94=A8=E6=9B=B4=E5=8A=A0=E7=81=B5?= =?UTF-8?q?=E6=B4=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jiangdg/usbcamera/USBCameraManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } }); }