Skip to content

Commit a038f1b

Browse files
committed
fix(android): isConnected wrong state after disconnection
1 parent dff7981 commit a038f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bluetooth.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ export class Bluetooth extends BluetoothCommon {
14021402
})
14031403
);
14041404
}
1405-
return Promise.resolve(true);
1405+
return Promise.resolve(stateObject.state === 'connected');
14061406
}
14071407

14081408
public openBluetoothSettings() {

0 commit comments

Comments
 (0)