Skip to content

Commit 9a391ec

Browse files
author
Mantas Palaima
committed
fixed bluetooth enabling. my bad : >
1 parent 482701b commit 9a391ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debugdrawer/src/main/java/io/palaima/debugdrawer/controller/NetworkController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public boolean isBluetoothEnabled() {
153153
* @return
154154
*/
155155
public boolean setBluetoothEnabled(boolean enabled) {
156-
return !isBluetoothAvailable() && (enabled ? mBluetoothAdapter.enable()
156+
return isBluetoothAvailable() && (enabled ? mBluetoothAdapter.enable()
157157
: mBluetoothAdapter.disable());
158158
}
159159

0 commit comments

Comments
 (0)