mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-29 12:24:27 +01:00
Bug fixed: restoring calling onDeviceDisconnect()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user