From 90cc8a62e05059319487692e8b0fc0435dd8817d Mon Sep 17 00:00:00 2001 From: jiangdongguo <765067602@qq.com> Date: Sun, 12 Nov 2017 23:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A3=80=E6=B5=8BUSB?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8?= 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, 2 insertions(+), 2 deletions(-) diff --git a/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java b/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java index d2aaa0f..8bc1d6f 100644 --- a/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java +++ b/libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java @@ -176,7 +176,7 @@ public class USBCameraManager{ public void restartUSBCamera(CameraViewInterface cameraView,final OnPreviewListener mPreviewListener){ if(mCtrlBlock == null || cameraView == null) - new Throwable("mCtrlBlock or cameraView is null---jiangdongguo"); + throw new NullPointerException("mCtrlBlock or cameraView is null,please connected to camera"); // 创建Camera管理线程 createUVCCamera(cameraView); // 创建Camera @@ -253,7 +253,7 @@ public class USBCameraManager{ } // 返回USB设备列表 - private List getUsbDeviceList(){ + public List getUsbDeviceList(){ List deviceFilters = DeviceFilter.getDeviceFilters(mActivity.getApplicationContext(), R.xml.device_filter); if(mUSBMonitor == null || deviceFilters == null) return null;