Commit 069045be by wujek-srujek Committed by GitHub

Fix double 'onSuccess' call when checking BT service status (Android) (#1093)

parent aecf6b11
## 10.3.1
* Fixes `java.lang.IllegalStateException: Reply already submitted` when checking status of Bluetooth service.
## 10.3.0 ## 10.3.0
* Adds support for the new Android 13 permission: BODY_SENSORS_BACKGROUND. * Adds support for the new Android 13 permission: BODY_SENSORS_BACKGROUND.
......
...@@ -53,6 +53,7 @@ final class ServiceManager { ...@@ -53,6 +53,7 @@ final class ServiceManager {
: PermissionConstants.SERVICE_STATUS_DISABLED; : PermissionConstants.SERVICE_STATUS_DISABLED;
successCallback.onSuccess(serviceStatus); successCallback.onSuccess(serviceStatus);
return;
} }
if (permission == PermissionConstants.PERMISSION_GROUP_PHONE) { if (permission == PermissionConstants.PERMISSION_GROUP_PHONE) {
......
name: permission_handler_android name: permission_handler_android
description: Permission plugin for Flutter. This plugin provides the Android API to request and check permissions. description: Permission plugin for Flutter. This plugin provides the Android API to request and check permissions.
homepage: https://github.com/baseflow/flutter-permission-handler homepage: https://github.com/baseflow/flutter-permission-handler
version: 10.3.0 version: 10.3.1
environment: environment:
sdk: ">=2.15.0 <4.0.0" sdk: ">=2.15.0 <4.0.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment