private static synchronized void startEventMonitor(Context context, UsbManager manager, UsbEventListener listener)
{
if (eventMonitor != null) {
- eventMonitor.stop();
- eventMonitor = null;
+ eventMonitor.stop();
+ eventMonitor = null;
}
if (context == null) {
Log.w("UsbHelper", "no context");
private static synchronized void stopEventMonitor(Context context)
{
if (eventMonitor != null) {
- eventMonitor.stop();
- eventMonitor = null;
+ eventMonitor.stop();
+ eventMonitor = null;
}
}