We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52369cc commit 03cad11Copy full SHA for 03cad11
1 file changed
android/src/main/java/kjd/reactnative/bluetooth/RNBluetoothClassicModule.java
@@ -384,9 +384,9 @@ public void requestBluetoothEnabled(Promise promise) {
384
promise.resolve(true);
385
} else {
386
Activity activity = getCurrentActivity();
387
- if (activity != null) {
388
- mEnabledPromise = promise;
389
-
+ mEnabledPromise = promise;
+
+ if (activity != null) {
390
Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
391
activity.startActivityForResult(intent, BluetoothRequest.ENABLE_BLUETOOTH.code);
392
0 commit comments