The FitbitGatt API is designed to provide a strong state machine around all Android gatt operations with the aim of making Android BLE development across Android vendors as straightforward and side-effect free as possible.
remove synchronized keyword since we don't need to guard an AtomicBoolean here, and the lock can be held over the course of a possibly long listener dispatch.
remove synchronized keyword since we don't need to guard an AtomicBoolean here, and the lock can be held over the course of a possibly long listener dispatch.