We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 482701b commit 9a391ecCopy full SHA for 9a391ec
debugdrawer/src/main/java/io/palaima/debugdrawer/controller/NetworkController.java
@@ -153,7 +153,7 @@ public boolean isBluetoothEnabled() {
153
* @return
154
*/
155
public boolean setBluetoothEnabled(boolean enabled) {
156
- return !isBluetoothAvailable() && (enabled ? mBluetoothAdapter.enable()
+ return isBluetoothAvailable() && (enabled ? mBluetoothAdapter.enable()
157
: mBluetoothAdapter.disable());
158
}
159
0 commit comments