diff --git a/permission_handler_android/CHANGELOG.md b/permission_handler_android/CHANGELOG.md index 5f831507a..dfec82c83 100644 --- a/permission_handler_android/CHANGELOG.md +++ b/permission_handler_android/CHANGELOG.md @@ -1,3 +1,8 @@ + +## 13.0.1 + +* fix: Resolve `PermissionRequestInProgressException` when app is relaunched with non-standard launchMode. + ## 13.0.0 - **BREAKING CHANGES:** When updating to version 13.0.0 make sure to also set the `compileSdkVersion` in the `app/build.gradle` file to `35`. @@ -5,11 +10,13 @@ - Updates Android `com.android.tools.build:gradle:8.0.0` to `com.android.tools.build:gradle:8.0.2` - Updates Android `sourceCompatibility = JavaVersion.VERSION_1_8` to `sourceCompatibility = JavaVersion.VERSION_17` + ## 12.1.0 - Updates the package to correctly support Flutter 3.29. - Migrates away from deprecated imperative Gradle plugins. + ## 12.0.13 - Updates the Android min SDK to 19 (from 16). diff --git a/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java b/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java index 807ca3370..8da9ee2ef 100644 --- a/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java +++ b/permission_handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java @@ -174,6 +174,7 @@ public boolean onRequestPermissionsResult( } if (permissions.length == 0 && grantResults.length == 0) { + pendingRequestCount = 0; Log.w(PermissionConstants.LOG_TAG, "onRequestPermissionsResult is called without results. This is probably caused by interfering request codes. If you see this error, please file an issue in flutter-permission-handler, including a list of plugins used by this application: https://github.com/Baseflow/flutter-permission-handler/issues"); return false; } diff --git a/permission_handler_android/pubspec.yaml b/permission_handler_android/pubspec.yaml index 50ce0dd20..b16ec5278 100644 --- a/permission_handler_android/pubspec.yaml +++ b/permission_handler_android/pubspec.yaml @@ -1,7 +1,7 @@ name: permission_handler_android description: Permission plugin for Flutter. This plugin provides the Android API to request and check permissions. homepage: https://github.com/baseflow/flutter-permission-handler -version: 13.0.0 +version: 13.0.1 environment: sdk: ^3.5.0