Turning off the bluetooth in Android system settings gives us the BluetoothGattCallback.onConnectionStateChange()
call in Android < 27 (Oreo). However when I try it on my Pixel or Nexus 5X (Android 8.1.0) I don't get that callback. Is there some change to the bluetooth code where we don't get notified of BluetoothProfile.STATE_DISCONNECTED
with the bluetooth setting change. I notice the device gets disconnected. Also when turning off the BLE device that callback gets called. Any insight is appreciated!
Filed as an issue here Google Issue