kopia lustrzana https://github.com/mik3y/usb-serial-for-android
fixed example app crash
rodzic
f1d73c04dc
commit
c917ac5c83
|
@ -243,8 +243,10 @@ public class TerminalFragment extends Fragment implements SerialInputOutputManag
|
|||
private void disconnect() {
|
||||
connected = false;
|
||||
controlLines.stop();
|
||||
if(usbIoManager != null)
|
||||
if(usbIoManager != null) {
|
||||
usbIoManager.setListener(null);
|
||||
usbIoManager.stop();
|
||||
}
|
||||
usbIoManager = null;
|
||||
try {
|
||||
usbSerialPort.close();
|
||||
|
|
Ładowanie…
Reference in New Issue