Bug fixed: restoring calling onDeviceDisconnect()

This commit is contained in:
Aleksander Nowakowski
2016-10-18 16:41:17 +02:00
parent e0fee213f0
commit fbfb6fc23f

View File

@@ -892,6 +892,8 @@ public abstract class BleManager<E extends BleManagerCallbacks> implements ILogg
/**
* This method should nullify all services and characteristics of the device.
* It's called when the device is no longer connected, either due to user action
* or a link loss.
*/
protected abstract void onDeviceDisconnected();
@@ -1034,6 +1036,7 @@ public abstract class BleManager<E extends BleManagerCallbacks> implements ILogg
// We are not closing the connection here as the device should try to reconnect automatically.
// This may be only called when the shouldAutoConnect() method returned true.
}
onDeviceDisconnected();
return;
}